Closed
Bug 1428276
Opened 8 years ago
Closed 8 years ago
Make ExpectedOwnerForChild deal with abs.pos. anon boxes
Categories
(Core :: Layout, enhancement)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: tommykuo, Assigned: tommykuo)
References
Details
Attachments
(1 file)
Like Bug 1423761, I think we should also use `GetInFlowParent()` in `ExpectedOwnerForChild()` to make sure that we can find the correct parent of style context for an OOF frame.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8940089 -
Flags: review?(cam)
Assignee | ||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8940089 [details]
Bug 1428276 - Make ExpectedOwnerForChild deal with abs.pos. anon boxes.
https://reviewboard.mozilla.org/r/210374/#review216548
::: layout/base/ServoRestyleManager.cpp:110
(Diff revision 1)
> const nsIFrame* tableFrame = parent->PrincipalChildList().FirstChild();
> MOZ_ASSERT(tableFrame->IsTableFrame());
> // Handle :-moz-table and :-moz-inline-table.
> parent = IsAnonBox(*tableFrame) ? parent->GetParent() : tableFrame;
> } else {
> - parent = parent->GetParent();
> + parent = parent->GetInFlowParent();
Can you add a comment here saying that it's the in-flow parent we need to use, so that we correctly handle OOF anonymous boxes?
Attachment #8940089 -
Flags: review?(cam) → review+
Comment hidden (mozreview-request) |
Pushed by tokuo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7a30d386b21a
Make ExpectedOwnerForChild deal with abs.pos. anon boxes. r=heycam
![]() |
||
Comment 6•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Assignee | ||
Updated•8 years ago
|
Blocks: content-select
You need to log in
before you can comment on or make changes to this bug.
Description
•