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

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

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
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 439c3420e6f5c0836eeb0cf255b17f5db4469c88..40bd77ce194a2fa561067ba04c39304fb7674675 100644
--- a/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
@@ -67,7 +67,7 @@ void HTMLStyleElement::parseAttribute(const QualifiedName& name, const AtomicStr
{
if (name == titleAttr && m_sheet) {
m_sheet->setTitle(value);
- } else if (name == mediaAttr && inDocument() && document().isActive() && m_sheet) {
+ } else if (name == mediaAttr && inShadowIncludingDocument() && document().isActive() && m_sheet) {
m_sheet->setMediaQueries(MediaQuerySet::create(value));
document().styleEngine().setNeedsActiveStyleUpdate(m_sheet.get(), FullStyleUpdate);
} else {

Powered by Google App Engine
This is Rietveld 408576698