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:
Emilio Cobos Álvarez 2022-10-27 10:48:58 +00:00 committed by Martin Robinson
parent 8a5ba3fe16
commit b2ab136cd9
5 changed files with 38 additions and 40 deletions

View file

@ -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