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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.h

Issue 2105743002: Optimize style recalc when adding @keyframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test review issues Created 4 years, 6 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/dom/StyleEngine.h
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.h b/third_party/WebKit/Source/core/dom/StyleEngine.h
index b2cd4f001e62058521b5bf47f194b1a75b249b07..2a6f529f1bc6c1e60d1a2aff16d1834e5297463e 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -123,6 +123,9 @@ public:
void shadowRootRemovedFromDocument(ShadowRoot*);
void appendActiveAuthorStyleSheets();
+ void setHasUnresolvedKeyframesRule() { m_hasUnresolvedKeyframesRule = true; }
+ void keyframesRulesAdded();
+
StyleResolver* resolver() const
{
return m_resolver.get();
@@ -253,6 +256,7 @@ private:
bool m_ignorePendingStylesheets = false;
bool m_didCalculateResolver = false;
+ bool m_hasUnresolvedKeyframesRule = false;
Member<StyleResolver> m_resolver;
StyleInvalidator m_styleInvalidator;

Powered by Google App Engine
This is Rietveld 408576698