Closed Bug 1489015 Opened 6 years ago Closed 6 years ago

Remove nsAbsoluteItems::AddChild()

Categories

(Core :: Layout, enhancement, P4)

enhancement

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
Summary: Remove nsAbsolute::AddChild() → Remove nsAbsoluteItems::AddChild()
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 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+
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()
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
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: