Hi David,

Thanks for the heads up about bug 539356. I think I'll go ahead with the approach Elika suggested (i.e. renaming things in logical terms) for the time being anyway (although, if possible, I'll try to steer clear of the invalidation code that's likely to disappear).

If nothing else, it's probably a useful exercise for me in learning what's going on. I'm also quite unsure about those logical/physical boundaries but I think the best way for me to understand might be just to make a start.

I've added bug 735577 for this work where I've tried to summarise this discussion--feel free to correct or add to it.

Thanks,

Brian

(2012/03/14 1:55), L. David Baron wrote:
+dev-tech-layout

So one thing that I probably should have mentioned yesterday is that
one big set of code where we currently want physical coordinates
rather than logical coordinates inside of reflow relates to
Invalidation, but that set of code should all be going away with
https://bugzilla.mozilla.org/show_bug.cgi?id=539356 .  So following
the conversion approach Elika suggested right now (before those
calls go away) might make would have a good bit more complication
than once the invalidation code goes away.

That said, if we follow Elika's approach, which as I understand it
involves converting the reflow API to logical names (e.g., fully
converting nsHTMLReflowState and nsHTMLReflowMetrics, and adding
logical alternative setters/getters to nsIFrame), I'm still a little
worried about what's going to happen to the frame classes that are
still going to want to do everything in terms of physical
coordinates.  At a first glance these might be nsImageFrame,
nsObjectFrame, nsHTMLCanvasFrame, nsVideoFrame, nsImageBoxFrame,
nsImageControlFrame, nsProgressFrame (I think),
nsGfxCheckboxControlFrame (and probably nsGfxRadioControlFrame too),
the interfaces to SVG (nsSVGOuterSVGFrame and
nsSVGForeignObjectFrame), and possibly (?) all of MathML.  I think
we may need to think a little more about where the logical/physical
boundaries should be -- both in terms of algorithms and in terms of
frame classes.

-David


_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to