mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
style: Don't cache structs with custom property references.
This commit is contained in:
parent
30982b92c8
commit
fd5fe0a8e3
1 changed files with 4 additions and 0 deletions
|
@ -3298,6 +3298,10 @@ where
|
|||
for (declaration, cascade_level) in iter_declarations() {
|
||||
let mut declaration = match *declaration {
|
||||
PropertyDeclaration::WithVariables(id, ref unparsed) => {
|
||||
if !id.inherited() {
|
||||
context.rule_cache_conditions.borrow_mut()
|
||||
.set_uncacheable();
|
||||
}
|
||||
Cow::Owned(unparsed.substitute_variables(
|
||||
id,
|
||||
&context.builder.custom_properties,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue