diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-12-31 07:01:10 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-31 07:01:10 -0600 |
commit | 1970e82b0d310128eabe8466d39d42cc20e7ae4b (patch) | |
tree | 83e009873b64c23971b4083944223a45dd2a6f28 /components/layout/display_list_builder.rs | |
parent | e882660ea694f9f12d9d2936012dbdf192f8aec8 (diff) | |
parent | e464f5b020f704b9f12f67db3e91019fbb92086f (diff) | |
download | servo-1970e82b0d310128eabe8466d39d42cc20e7ae4b.tar.gz servo-1970e82b0d310128eabe8466d39d42cc20e7ae4b.zip |
Auto merge of #19666 - emilio:root-and-item, r=upsuper
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.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19666)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/display_list_builder.rs')
0 files changed, 0 insertions, 0 deletions