| Index: Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp
|
| diff --git a/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp b/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp
|
| index 06c218863dde1a8e197c28d0bba04ef04db2e983..b94ea3223ff73eed2e5914d633f4e7ff4a5521d6 100644
|
| --- a/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp
|
| +++ b/Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp
|
| @@ -113,7 +113,6 @@ static bool ruleAdditionMightRequireDocumentStyleRecalc(StyleRuleBase* rule)
|
| // the added @rule can't require style recalcs.
|
| switch (rule->type()) {
|
| case StyleRule::Import: // Whatever we import should do its own analysis, we don't need to invalidate the document here!
|
| - case StyleRule::Keyframes: // Keyframes never cause style invalidations and are handled during sheet insertion.
|
| case StyleRule::Page: // Page rules apply only during printing, we force a full-recalc before printing.
|
| return false;
|
|
|
| @@ -121,6 +120,7 @@ static bool ruleAdditionMightRequireDocumentStyleRecalc(StyleRuleBase* rule)
|
| case StyleRule::FontFace: // If the fonts aren't in use, we could avoid recalc.
|
| case StyleRule::Supports: // If we evaluated the supports-clause we could avoid recalc.
|
| case StyleRule::Viewport: // If the viewport doesn't match, we could avoid recalcing.
|
| + case StyleRule::Keyframes: // If the animation doesn't match an element, we could avoid recalc.
|
| // FIXME: Unclear if any of the rest need to cause style recalc:
|
| case StyleRule::Filter:
|
| return true;
|
|
|