Closed Bug 468886 Opened 16 years ago Closed 15 years ago

Add a reflow event for mobile

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: taras.mozilla, Unassigned)

References

Details

Currently we periodically check page dimensions during page load. See http://mxr.mozilla.org/mobile-browser/source/chrome/content/CanvasBrowser.js#508

Unfortunately scrollWidth can trigger reflows. A better solution would be if we had reflow events to subscribe to. This would have similar restrictions/optimizations to MozAfterPaint.
I figure we could just fire this chrome-only from the safe point after reflow finishes.  Sync firing should be ok, since scripts can run at that point anyway, right?

Alternately, we could fire async, though that will still have the effect that this event firing would cause reflow flushes as mobile gets the layout data it wants.
sync is good for fennec as most likely outcome will be firing a timeout.
Blocks: 459117
We can get by using heuristics from mozafterpaint event
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.