Index: third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp |
index dabc45818a76cb52881a8e179cd2874bbfe12292..85976c3edfab1f1e0c60c72bde99f25dd0c5442a 100644 |
--- a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp |
+++ b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp |
@@ -275,7 +275,6 @@ void ProcessingInstruction::removedFrom(ContainerNode* insertionPoint) { |
*insertionPoint); |
} |
- StyleSheet* removedSheet = m_sheet; |
if (m_sheet) { |
DCHECK_EQ(m_sheet->ownerNode(), this); |
clearSheet(); |
@@ -284,11 +283,12 @@ void ProcessingInstruction::removedFrom(ContainerNode* insertionPoint) { |
// No need to remove pending sheets. |
clearResource(); |
+ // TODO(rune@opera.com): resolverChanged() can be removed once stylesheet |
+ // updates are async. https://crbug.com/567021 |
// If we're in document teardown, then we don't need to do any notification of |
// our sheet's removal. |
if (document().isActive()) |
- document().styleEngine().setNeedsActiveStyleUpdate(removedSheet, |
- FullStyleUpdate); |
+ document().styleEngine().resolverChanged(FullStyleUpdate); |
} |
void ProcessingInstruction::clearSheet() { |