Closed
Bug 1158323
Opened 9 years ago
Closed 9 years ago
Many "Attempting to get a margins-based displayport with no base data!" warnings in console on OS X with APZ
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(2 files, 1 obsolete file)
6.58 KB,
text/plain
|
Details | |
1.41 KB,
patch
|
tnikkel
:
review+
|
Details | Diff | Splinter Review |
I see this warning a bunch when running on OS X with APZ enabled. It fires on the root content element of the root XUL document, see backtrace.
Comment 1•9 years ago
|
||
We should probably just call nsLayoutUtils::SetDisplayPortBase() in ChromeProcessController::InitializeRoot().
Comment 2•9 years ago
|
||
That would be good. We could also set the display port base in the BuildDisplayList of one of the frames near near the root, the root (viewport frame) perhaps.
Assignee | ||
Comment 3•9 years ago
|
||
mContent appears to be null inside nsViewportFrame::BuildDisplayList so I'm not sure how we could set the displayport base there.
Comment 4•9 years ago
|
||
Yeah, we would have to specifically use the root element in that case (instead of mContent).
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8598222 -
Flags: review?(tnikkel)
Comment 6•9 years ago
|
||
Comment on attachment 8598222 [details] [diff] [review] Patch Review of attachment 8598222 [details] [diff] [review]: ----------------------------------------------------------------- Maybe add a comment in InitalizeRoot, saying where the base rect will be set?
Comment 7•9 years ago
|
||
Comment on attachment 8598222 [details] [diff] [review] Patch I think I have a better way to do it. If there is a root scroll frame in the same document as the viewport frame then we would end up setting the display port base twice, once in the viewport frame, and once in the scroll frame. Refering to http://mxr.mozilla.org/mozilla-central/source/layout/base/nsCSSFrameConstructor.cpp#2722 I think we should set the display port base in nsRootBoxFrame. That way we only set it in xul documents that don't have root scroll frames. One nit: we should set the base to the dirty rect intersected with our local rect.
Attachment #8598222 -
Flags: review?(tnikkel)
Assignee | ||
Comment 8•9 years ago
|
||
Sounds good, this works too.
Assignee: nobody → bugmail.mozilla
Attachment #8598222 -
Attachment is obsolete: true
Attachment #8598636 -
Flags: review?(tnikkel)
Comment 9•9 years ago
|
||
Comment on attachment 8598636 [details] [diff] [review] Patch Thanks.
Attachment #8598636 -
Flags: review?(tnikkel) → review+
https://hg.mozilla.org/mozilla-central/rev/18db17b9f922
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•