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

Unified Diff: third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp

Issue 2554873002: Mark correct tree-scope dirty removing link in shadow. (Closed)
Patch Set: Rebased 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/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) {
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/host-link-style.html ('k') | third_party/WebKit/Source/core/dom/StyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698