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

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

Issue 2590793003: Don't update global ruleset when active style is dirty. (Closed)
Patch Set: window.eventSender Created 4 years 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 aac69e7511dc297474b44008098a7bd54ea4ad5f..e5bad65e63d49f7eabc03e1364b420ba3cdec9c4 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -315,6 +315,10 @@ class CORE_EXPORT StyleEngine final
void updateViewport();
void updateActiveStyleSheets();
+ void updateGlobalRuleSet() {
+ DCHECK(!needsActiveStyleSheetUpdate());
+ m_globalRuleSet.update(document());
+ }
const MediaQueryEvaluator& ensureMediaQueryEvaluator();
Member<Document> m_document;

Powered by Google App Engine
This is Rietveld 408576698