Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Unified Diff: Source/core/css/resolver/MatchedPropertiesCache.cpp

Issue 71083002: Web Animations: Use legacy cascade behaviour and the MatchedPropertiesCache (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: address more comments Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/css/resolver/MatchedPropertiesCache.cpp
diff --git a/Source/core/css/resolver/MatchedPropertiesCache.cpp b/Source/core/css/resolver/MatchedPropertiesCache.cpp
index 86c4c7345cb9a385e238a4abbea4f42fec215ed4..d3c222a1f1ebd376142c9127f55921f6945042c6 100644
--- a/Source/core/css/resolver/MatchedPropertiesCache.cpp
+++ b/Source/core/css/resolver/MatchedPropertiesCache.cpp
@@ -154,12 +154,6 @@ bool MatchedPropertiesCache::isCacheable(const Element* element, const RenderSty
// The cache assumes static knowledge about which properties are inherited.
if (parentStyle->hasExplicitlyInheritedProperties())
return false;
- if (RuntimeEnabledFeatures::webAnimationsEnabled()) {
- if (style->transitions() && !style->transitions()->isEmpty())
- return false;
- if (style->animations() && !style->animations()->isEmpty())
- return false;
- }
return true;
}

Powered by Google App Engine
This is Rietveld 408576698