Closed Bug 1478069 Opened 6 years ago Closed 6 years ago

A bit of nsCSSFrameConstructor cleanup.

Categories

(Core :: Layout, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

This is part of the cleanup I want to do before doing bug 1476281.
Summary: Use more references in nsCSSFrameConstructor. → A bit of nsCSSFrameConstructor cleanup.
Attached file Trivial frame constructor cleanup. (deleted) —
Using references helps to see when stuff can and cannot be null. I removed useless aTag / aNamespaceId arguments which are useless now that XBL can't override them (bug 1450617), so FindXULData is the only one that keeps them alive. Also, I took the liberty of renaming a few fooComputedStyle variables to just fooStyle, and clarify naming in some pseudo-element-related functions to say originating element (the spec term) and avoid confusing it with the generated _moz_generated_content_before / _moz_generated_content_after element. Note that this is a partial state, more stuff will come in the future.
It's not needed anymore, since we tag the pseudo-elements at creation time for styling.
It's the same, and avoids a bit of duplication.
We verify the flattened tree is correct in VerifyFlatTree (in RestyleManager), plus the post-condition still holds of course.
Comment on attachment 8994572 [details] Trivial frame constructor cleanup. Ting-Yu Lin [:TYLin] (UTC-7) has approved the revision. https://phabricator.services.mozilla.com/D2326
Attachment #8994572 - Flags: review+
Comment on attachment 8994605 [details] Bug 1478069: Use AddFrameConstructionItems for display: contents. Ting-Yu Lin [:TYLin] (UTC-7) has approved the revision. https://phabricator.services.mozilla.com/D2329
Attachment #8994605 - Flags: review+
Comment on attachment 8994607 [details] Bug 1478069: Remove useless ping-pong between flattened and light child. Ting-Yu Lin [:TYLin] (UTC-7) has approved the revision. https://phabricator.services.mozilla.com/D2331
Attachment #8994607 - Flags: review+
Comment on attachment 8994601 [details] Bug 1478069: Remove ContentInfo::mChildren. Boris Zbarsky [:bz] (no decent commit message means r-) has approved the revision. https://phabricator.services.mozilla.com/D2330
Attachment #8994601 - Flags: review+
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/mozilla-inbound/rev/94f84afc3c6d Trivial frame constructor cleanup. r=TYLin https://hg.mozilla.org/integration/mozilla-inbound/rev/3c73ab776d8b Remove useless ping-pong between flattened and light child. r=TYLin https://hg.mozilla.org/integration/mozilla-inbound/rev/5ef482c2a889 Use AddFrameConstructionItems for display: contents. r=TYLin https://hg.mozilla.org/integration/mozilla-inbound/rev/717970e42f16 Remove ContentInfo::mChildren. r=bz
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: