Chromium Code Reviews

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.
Jump to:
View side-by-side diff with in-line comments
« 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