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

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

Issue 2554193002: Make sure media query results are re-collected. (Closed)
Patch Set: Rebased 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.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index fca51cb7fe1b23c3ed2f54a17b62aa5a15f9faf1..3830d87b66763f0d02f4d2cd5d41875d5d62bfe0 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -238,6 +238,12 @@ void StyleEngine::modifiedStyleSheetCandidateNode(Node& node) {
resolverChanged(AnalyzedStyleUpdate);
}
+void StyleEngine::mediaQueriesChangedInScope(TreeScope& treeScope) {
+ if (ScopedStyleResolver* resolver = treeScope.scopedStyleResolver())
+ resolver->setNeedsAppendAllSheets();
+ setNeedsActiveStyleUpdate(treeScope);
+}
+
void StyleEngine::watchedSelectorsChanged() {
m_globalRuleSet.initWatchedSelectorsRuleSet(document());
// TODO(rune@opera.com): Should be able to use RuleSetInvalidation here.
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | third_party/WebKit/Source/core/dom/StyleEngineTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698