Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Unified Diff: Source/core/dom/PendingScript.cpp

Issue 847803002: Make ScriptStreamer and dependents Oilpan friendly. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add ScriptSourceCode::isNull() comment Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/PendingScript.h ('k') | Source/core/frame/DOMTimer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/dom/PendingScript.h ('k') | Source/core/frame/DOMTimer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698