Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 8327fcf74cc42ffab4b2de0ef0a25b5f8dbd94fc..b3fc7f14359dada020f4dfa5ed5727064c2bfc11 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -3904,6 +3904,7 @@ void Document::popCurrentScript() |
void Document::applyXSLTransform(ProcessingInstruction* pi) |
{ |
+ ASSERT(!pi->isLoading()); |
UseCounter::count(this, UseCounter::XSLProcessingInstruction); |
RefPtr<XSLTProcessor> processor = XSLTProcessor::create(); |
processor->setXSLStyleSheet(static_cast<XSLStyleSheet*>(pi->sheet())); |