| 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.
|
|
|