mirror of
https://github.com/servo/servo.git
synced 2025-07-03 13:33:39 +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() {
|
for (declaration, cascade_level) in iter_declarations() {
|
||||||
let mut declaration = match *declaration {
|
let mut declaration = match *declaration {
|
||||||
PropertyDeclaration::WithVariables(id, ref unparsed) => {
|
PropertyDeclaration::WithVariables(id, ref unparsed) => {
|
||||||
|
if !id.inherited() {
|
||||||
|
context.rule_cache_conditions.borrow_mut()
|
||||||
|
.set_uncacheable();
|
||||||
|
}
|
||||||
Cow::Owned(unparsed.substitute_variables(
|
Cow::Owned(unparsed.substitute_variables(
|
||||||
id,
|
id,
|
||||||
&context.builder.custom_properties,
|
&context.builder.custom_properties,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue