mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Simplify container-type implementation
It was made a bitfield so that we could include style. But then style containment was removed and the bitfield keeps causing us to do wrong check (since INLINE_SIZE intersects SIZE). So just make it an enum. This causes a progression and a test that failed now times out (which is a pre-existing issue, just like the pseudo-elements test that times out). Differential Revision: https://phabricator.services.mozilla.com/D160371
This commit is contained in:
parent
8a5ba3fe16
commit
b2ab136cd9
5 changed files with 38 additions and 40 deletions
|
@ -912,7 +912,7 @@ pub trait MatchMethods: TElement {
|
|||
let is_container = !new_primary_style
|
||||
.get_box()
|
||||
.clone_container_type()
|
||||
.is_empty();
|
||||
.is_normal();
|
||||
if is_root || is_container {
|
||||
let new_font_size = new_primary_style.get_font().clone_font_size();
|
||||
let old_font_size = old_styles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue