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

Unified Diff: Source/core/dom/Document.cpp

Issue 322043008: Evaluate MediaQueryLists on actual media changes only. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 493f59e6f26c0a096c4b70c1e0bc39602692a0d1..f59497f5bfd0f94d5f4ff5f824e9f15be9b947ad 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -680,6 +680,7 @@ MediaQueryMatcher& Document::mediaQueryMatcher()
void Document::mediaQueryAffectingValueChanged()
{
+ m_evaluateMediaQueriesOnStyleRecalc = true;
styleEngine()->clearMediaQueryRuleSetStyleSheets();
}
@@ -3456,8 +3457,6 @@ void Document::styleResolverChanged(StyleResolverUpdateMode updateMode)
m_pendingSheetLayout = IgnoreLayoutWithPendingSheets;
renderView()->repaintViewAndCompositedLayers();
}
-
- m_evaluateMediaQueriesOnStyleRecalc = true;
}
void Document::styleResolverMayHaveChanged()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698