Skip to content

Commit

Permalink
style: Don't cache structs with custom property references.
Browse files Browse the repository at this point in the history
  • Loading branch information
heycam committed Sep 14, 2017
1 parent 30982b9 commit fd5fe0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/style/properties/properties.mako.rs
Expand Up @@ -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,
Expand Down

0 comments on commit fd5fe0a

Please sign in to comment.