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

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

Issue 722093002: Handle case when XSL stylesheet node is removed during load (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: refine layout test. Created 6 years, 1 month 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
« no previous file with comments | « LayoutTests/fast/dom/StyleSheet/detached-style-pi-2.xhtml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ProcessingInstruction.cpp
diff --git a/Source/core/dom/ProcessingInstruction.cpp b/Source/core/dom/ProcessingInstruction.cpp
index d0112335a1b8409dcfbefff4dcc78bc5107fc488..2a6eced3750e5638964983dacaa21606591b50e1 100644
--- a/Source/core/dom/ProcessingInstruction.cpp
+++ b/Source/core/dom/ProcessingInstruction.cpp
@@ -283,6 +283,10 @@ void ProcessingInstruction::removedFrom(ContainerNode* insertionPoint)
if (m_sheet) {
ASSERT(m_sheet->ownerNode() == this);
clearSheet();
+ } else if (resource()) {
+ ASSERT(m_loading);
+ document().styleEngine()->removePendingSheet(this);
+ clearResource();
}
// If we're in document teardown, then we don't need to do any notification of our sheet's removal.
« no previous file with comments | « LayoutTests/fast/dom/StyleSheet/detached-style-pi-2.xhtml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698