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

Unified Diff: third_party/WebKit/Source/core/html/HTMLStyleElement.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngineTest.cpp ('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/html/HTMLStyleElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp b/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
index a4b661c85b6a82767ead7bb5386405aba9186a2b..59c00ce16518b6602b631f1a545e68e1d2c90e32 100644
--- a/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
@@ -57,7 +57,7 @@ void HTMLStyleElement::parseAttribute(const QualifiedName& name,
} else if (name == mediaAttr && isConnected() && document().isActive() &&
m_sheet) {
m_sheet->setMediaQueries(MediaQuerySet::create(value));
- document().styleEngine().setNeedsActiveStyleUpdate(treeScope());
+ document().styleEngine().mediaQueriesChangedInScope(treeScope());
// TODO(rune@opera.com): resolverChanged() can be removed once stylesheet
// updates are async. https://crbug.com/567021
document().styleEngine().resolverChanged(FullStyleUpdate);
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngineTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698