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 051b670bc02913491fdc7248ac1dd30ef43e3f46..dabc45818a76cb52881a8e179cd2874bbfe12292 100644 |
--- a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp |
+++ b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp |
@@ -269,8 +269,11 @@ void ProcessingInstruction::removedFrom(ContainerNode* insertionPoint) { |
return; |
// No need to remove XSLStyleSheet from StyleEngine. |
- if (!DocumentXSLT::processingInstructionRemovedFromDocument(document(), this)) |
- document().styleEngine().removeStyleSheetCandidateNode(*this); |
+ if (!DocumentXSLT::processingInstructionRemovedFromDocument(document(), |
+ this)) { |
+ document().styleEngine().removeStyleSheetCandidateNode(*this, |
+ *insertionPoint); |
+ } |
StyleSheet* removedSheet = m_sheet; |
if (m_sheet) { |