Closed
Bug 1489015
Opened 6 years ago
Closed 6 years ago
Remove nsAbsoluteItems::AddChild()
Categories
(Core :: Layout, enhancement, P4)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
Details
Attachments
(2 files)
nsAbsoluteItems::AddChild() is not virtual, so it is not used at all except by ConstructBackdropFrameFor() [1]. I don't feel we need to make it virtual. I think we can remove it, and add an assertion that an out-of-flow frame must have placeholder frame in nsFrameItems::AddChild().
[1] https://searchfox.org/mozilla-central/rev/a41fd8cb947266ea2e3f463fc6e31c88bfab9d41/layout/base/nsCSSFrameConstructor.cpp#1249
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Depends on D5112
Updated•6 years ago
|
Summary: Remove nsAbsolute::AddChild() → Remove nsAbsoluteItems::AddChild()
Comment 3•6 years ago
|
||
Comment on attachment 9006782 [details]
Bug 1489015 - Remove nsAbsoluteItems::AddChild() and add an assertion in nsFrameItems::AddChild()
Boris Zbarsky [:bzbarsky, bz on IRC] has approved the revision.
Attachment #9006782 -
Flags: review+
Comment 4•6 years ago
|
||
Comment on attachment 9006783 [details]
Bug 1489015 - Make NS_NewPlaceholderFrame() return nsPlaceholderFrame* to avoid type casting
Boris Zbarsky [:bzbarsky, bz on IRC] has approved the revision.
Attachment #9006783 -
Flags: review+
Updated•6 years ago
|
Attachment #9006782 -
Attachment description: Bug 1489015 - Remove nsAbsoluteItems::AddChild() and add an assertion in nsFrameItems::AddChild(). → Bug 1489015 - Remove nsAbsoluteItems::AddChild() and add an assertion in nsFrameItems::AddChild()
Updated•6 years ago
|
Attachment #9006783 -
Attachment description: Bug 1489015 - Make NS_NewPlaceholderFrame() return nsPlaceholderFrame* to avoid type casting. → Bug 1489015 - Make NS_NewPlaceholderFrame() return nsPlaceholderFrame* to avoid type casting
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/7f3759c5666e
Remove nsAbsoluteItems::AddChild() and add an assertion in nsFrameItems::AddChild() r=bzbarsky
https://hg.mozilla.org/integration/autoland/rev/9c147d3c4ef9
Make NS_NewPlaceholderFrame() return nsPlaceholderFrame* to avoid type casting r=bzbarsky
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7f3759c5666e
https://hg.mozilla.org/mozilla-central/rev/9c147d3c4ef9
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•