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

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

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
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index 3a9d1ad294d161fd6675adcda68f61496075f5e1..816010b54390405272d091a7a1f8c78aec422b87 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -355,7 +355,7 @@ void StyleEngine::updateActiveStyle() {
DCHECK(document().isActive());
updateViewport();
updateActiveStyleSheets();
- m_globalRuleSet.update(document());
+ updateGlobalRuleSet();
}
const ActiveStyleSheetVector StyleEngine::activeStyleSheetsForInspector() {
@@ -931,14 +931,14 @@ void StyleEngine::ensureUAStyleForFullscreen() {
return;
CSSDefaultStyleSheets::instance().ensureDefaultStyleSheetForFullscreen();
m_globalRuleSet.markDirty();
- m_globalRuleSet.update(document());
+ updateActiveStyle();
}
void StyleEngine::ensureUAStyleForElement(const Element& element) {
if (CSSDefaultStyleSheets::instance().ensureDefaultStyleSheetsForElement(
element)) {
m_globalRuleSet.markDirty();
- m_globalRuleSet.update(document());
+ updateActiveStyle();
}
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698