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..a4b661c85b6a82767ead7bb5386405aba9186a2b 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp |
@@ -57,8 +57,10 @@ 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().setNeedsActiveStyleUpdate(treeScope()); |
+ // TODO(rune@opera.com): resolverChanged() can be removed once stylesheet |
+ // updates are async. https://crbug.com/567021 |
+ document().styleEngine().resolverChanged(FullStyleUpdate); |
} else { |
HTMLElement::parseAttribute(name, oldValue, value); |
} |