aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/display_list_builder.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-12-31 12:53:21 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-12-31 13:57:49 +0100
commite464f5b020f704b9f12f67db3e91019fbb92086f (patch)
treeac48a807faea4001fe62555b4d4e1ad2231d2779 /components/layout/display_list_builder.rs
parentebff37b80720447044cc38553558e8339512144f (diff)
downloadservo-e464f5b020f704b9f12f67db3e91019fbb92086f.tar.gz
servo-e464f5b020f704b9f12f67db3e91019fbb92086f.zip
style: Simplify the skip item based display fixup adjustment.
In practice the only NAC that possibly inherits from a grid or flex container are pseudos. In Gecko, if the root element is an item container, custom anon content would also sometimes incorrectly inherit from that (see bug 1405635), but that's fixed in Stylo. We remove the IS_ROOT_ELEMENT blockification from the "skip display fixup" check, since the root element is never NAC or anything like that, so there's no need for the check. This also fixes some reparenting fishiness related to pseudo-elements. We were only skipping the fixup when reparenting anon boxes, not when reparenting normal element styles, nor when reparenting other pseudo styles which are not anon boxes.
Diffstat (limited to 'components/layout/display_list_builder.rs')
0 files changed, 0 insertions, 0 deletions