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

Unified Diff: Source/WebCore/html/DOMURL.cpp

Issue 6482007: Merge 76652 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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/WebCore/html/DOMURL.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/DOMURL.cpp
===================================================================
--- Source/WebCore/html/DOMURL.cpp (revision 78138)
+++ Source/WebCore/html/DOMURL.cpp (working copy)
@@ -37,8 +37,21 @@
DOMURL::DOMURL(ScriptExecutionContext* scriptExecutionContext)
: m_scriptExecutionContext(scriptExecutionContext)
{
+ m_scriptExecutionContext->createdDomUrl(this);
}
+DOMURL::~DOMURL()
+{
+ if (m_scriptExecutionContext)
+ m_scriptExecutionContext->destroyedDomUrl(this);
+}
+
+void DOMURL::contextDestroyed()
+{
+ ASSERT(m_scriptExecutionContext);
+ m_scriptExecutionContext = 0;
+}
+
String DOMURL::createObjectURL(Blob* blob)
{
if (!m_scriptExecutionContext)
« no previous file with comments | « Source/WebCore/html/DOMURL.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698