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

Unified Diff: third_party/WebKit/Source/core/html/HTMLStyleElement.cpp

Issue 1913833002: Current work-in-progress crbug.com/567021 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed html import issue. 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/html/HTMLStyleElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp b/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
index d3b1f7f60e7d91a49bc874ca05ee8f9b2a3de1bc..4db052233a996d833471252d924262ecfe69b679 100644
--- a/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
@@ -57,8 +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(m_sheet.get(),
- FullStyleUpdate);
+ document().styleEngine().mediaQueriesChangedInScope(treeScope());
} else {
HTMLElement::parseAttribute(name, oldValue, value);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLinkElement.cpp ('k') | third_party/WebKit/Source/core/html/LinkStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698