Index: Source/core/dom/PendingScript.cpp |
diff --git a/Source/core/dom/PendingScript.cpp b/Source/core/dom/PendingScript.cpp |
index dfc99c7d3bf6f586db2b5df5891f25593f91a1ad..3227d2ba8dccd71ea9ca9ee7433750908558d306 100644 |
--- a/Source/core/dom/PendingScript.cpp |
+++ b/Source/core/dom/PendingScript.cpp |
@@ -102,6 +102,11 @@ void PendingScript::stopWatchingForLoad(ScriptResourceClient* client) |
m_watchingForLoad = false; |
} |
+void PendingScript::setElement(Element* element) |
+{ |
+ m_element = element; |
+} |
+ |
PassRefPtrWillBeRawPtr<Element> PendingScript::releaseElementAndClear() |
{ |
setScriptResource(0); |
@@ -133,6 +138,7 @@ void PendingScript::notifyAppendData(ScriptResource* resource) |
void PendingScript::trace(Visitor* visitor) |
{ |
visitor->trace(m_element); |
+ visitor->trace(m_streamer); |
} |
ScriptSourceCode PendingScript::getSource(const KURL& documentURL, bool& errorOccurred) const |
@@ -148,7 +154,7 @@ ScriptSourceCode PendingScript::getSource(const KURL& documentURL, bool& errorOc |
return ScriptSourceCode(m_element->textContent(), documentURL, startingPosition()); |
} |
-void PendingScript::setStreamer(PassRefPtr<ScriptStreamer> streamer) |
+void PendingScript::setStreamer(PassRefPtrWillBeRawPtr<ScriptStreamer> streamer) |
{ |
ASSERT(!m_streamer); |
ASSERT(!m_watchingForLoad); |