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

Unified Diff: third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h

Issue 2361733004: Adding @keyframes rules only affects TreeScope plus host. (Closed)
Patch Set: Moved scope check to CSSAnimations Created 4 years, 3 months 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: third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
diff --git a/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h b/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
index 58f4e0b9552a81ef195575949052a15936d3dcbc..8d4ba30a854c1906d86964b101fe21760f5ccb9c 100644
--- a/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
+++ b/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
@@ -62,6 +62,8 @@ public:
void resetAuthorStyle();
void collectViewportRulesTo(ViewportStyleResolver*) const;
bool hasDeepOrShadowSelector() const { return m_hasDeepOrShadowSelector; }
+ void setHasUnresolvedKeyframesRule() { m_hasUnresolvedKeyframesRule = true; }
+ static void keyframesRulesAdded(const TreeScope&);
DECLARE_TRACE();
@@ -108,6 +110,7 @@ private:
Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet;
bool m_hasDeepOrShadowSelector = false;
+ bool m_hasUnresolvedKeyframesRule = false;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698