Closed
Bug 878801
Opened 12 years ago
Closed 12 years ago
BrowserNewTabPreloader needs to query tabbrowser bounds without flushing pending layout changes
Categories
(Firefox :: Tabbed Browser, defect)
Firefox
Tabbed Browser
Tracking
()
RESOLVED
FIXED
Firefox 24
People
(Reporter: ttaubert, Assigned: ttaubert)
References
Details
(Keywords: dev-doc-needed)
Attachments
(2 files)
3.42 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
1.08 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
Silly me introduced another uninterruptible reflow while fixing bug 875257. The BrowserNewTabPreloader must not query window.gBrowser.boxObject when opening new tabs or else this will again cause us to flush pending layout changes.
Assignee | ||
Comment 1•12 years ago
|
||
This patch adds .getBoundsWithoutFlushing() to nsIDOMWindowUtils which is the equivalent to DOMElement.getBoundingClientRect() without flushing pending layout changes.
Attachment #757404 -
Flags: review?(roc)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #757405 -
Flags: review?(jaws)
Assignee | ||
Comment 3•12 years ago
|
||
I forgot to note that it's totally ok for the BrowserNewTabPreloader to work with bounds that are possibly not up-to-date as we're optimizing for the average case where a user does not resize their window every time before opening a new tab (even if so there's a good chance something else will flush the layout for us). The code does still work with "incorrect" bounds.
Comment 4•12 years ago
|
||
Comment on attachment 757405 [details] [diff] [review]
part 2 - query tabbrowser bounds without flushing layout
Review of attachment 757405 [details] [diff] [review]:
-----------------------------------------------------------------
rs=me
Attachment #757405 -
Flags: review?(jaws) → review+
Attachment #757404 -
Flags: review?(roc) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Keywords: dev-doc-needed
Comment 6•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/40216a220b80
https://hg.mozilla.org/mozilla-central/rev/ce5ab0de1b09
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
You need to log in
before you can comment on or make changes to this bug.
Description
•