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 4338ba519334f6b51f9c0c83cec16402bfec78c1..0c9eb8c53acd5243a3f0774d6857e3dfc482e3b9 100644 |
--- a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp |
+++ b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp |
@@ -166,7 +166,7 @@ void ProcessingInstruction::process(const String& href, const String& charset) |
if (resource) { |
m_loading = true; |
if (!m_isXSL) |
- document().styleEngine().addPendingSheet(); |
+ document().styleEngine().addPendingSheet(m_styleEngineContext); |
setResource(resource); |
} |
} |
@@ -184,7 +184,7 @@ bool ProcessingInstruction::sheetLoaded() |
{ |
if (!isLoading()) { |
if (!DocumentXSLT::sheetLoaded(document(), this)) |
- document().styleEngine().removePendingSheet(this); |
+ document().styleEngine().removePendingSheet(this, m_styleEngineContext); |
return true; |
} |
return false; |
@@ -288,7 +288,7 @@ void ProcessingInstruction::clearSheet() |
{ |
DCHECK(m_sheet); |
if (m_sheet->isLoading()) |
- document().styleEngine().removePendingSheet(this); |
+ document().styleEngine().removePendingSheet(this, m_styleEngineContext); |
m_sheet.release()->clearOwnerNode(); |
} |