mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: Add a style flag for the root element style.
This is needed to make the root element not a containing block in presence of filters or what not. Differential Revision: https://phabricator.services.mozilla.com/D61167
This commit is contained in:
parent
f426b644ca
commit
16fd7cad0c
13 changed files with 37 additions and 46 deletions
|
@ -263,8 +263,11 @@ where
|
|||
builder.build()
|
||||
};
|
||||
|
||||
|
||||
let is_root_element =
|
||||
pseudo.is_none() && element.map_or(false, |e| e.is_root());
|
||||
|
||||
let mut context = computed::Context {
|
||||
is_root_element: pseudo.is_none() && element.map_or(false, |e| e.is_root()),
|
||||
// We'd really like to own the rules here to avoid refcount traffic, but
|
||||
// animation's usage of `apply_declarations` make this tricky. See bug
|
||||
// 1375525.
|
||||
|
@ -275,6 +278,7 @@ where
|
|||
pseudo,
|
||||
Some(rules.clone()),
|
||||
custom_properties,
|
||||
is_root_element,
|
||||
),
|
||||
cached_system_font: None,
|
||||
in_media_query: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue