OSDN Git Service

Merge WebKit at r78450: Initial merge by git.
[android-x86/external-webkit.git] / Source / WebCore / html / DOMURL.cpp
index 87f9f45..d0f0aeb 100644 (file)
@@ -37,6 +37,20 @@ namespace WebCore {
 DOMURL::DOMURL(ScriptExecutionContext* scriptExecutionContext)
     : m_scriptExecutionContext(scriptExecutionContext)
 {
+    if (m_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)