Index: Source/core/dom/ProcessingInstruction.cpp |
diff --git a/Source/core/dom/ProcessingInstruction.cpp b/Source/core/dom/ProcessingInstruction.cpp |
index 4b59f895bd387d1f14a1f06fe8f90605e5a15c80..d0112335a1b8409dcfbefff4dcc78bc5107fc488 100644 |
--- a/Source/core/dom/ProcessingInstruction.cpp |
+++ b/Source/core/dom/ProcessingInstruction.cpp |
@@ -26,6 +26,7 @@ |
#include "core/css/MediaList.h" |
#include "core/css/StyleSheetContents.h" |
#include "core/dom/Document.h" |
+#include "core/dom/IncrementLoadEventDelayCount.h" |
#include "core/dom/StyleEngine.h" |
#include "core/fetch/CSSStyleSheetResource.h" |
#include "core/fetch/FetchRequest.h" |
@@ -219,6 +220,7 @@ void ProcessingInstruction::setXSLStyleSheet(const String& href, const KURL& bas |
ASSERT(m_isXSL); |
m_sheet = XSLStyleSheet::create(this, href, baseURL); |
RefPtrWillBeRawPtr<Document> protect(&document()); |
+ OwnPtr<IncrementLoadEventDelayCount> delay = IncrementLoadEventDelayCount::create(document()); |
parseStyleSheet(sheet); |
} |