summaryrefslogtreecommitdiffstats
path: root/WebCore/notifications/Notification.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/notifications/Notification.cpp')
-rw-r--r--WebCore/notifications/Notification.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/WebCore/notifications/Notification.cpp b/WebCore/notifications/Notification.cpp
index 5908634..3684245 100644
--- a/WebCore/notifications/Notification.cpp
+++ b/WebCore/notifications/Notification.cpp
@@ -90,8 +90,6 @@ Notification::~Notification()
ASSERT_NOT_REACHED();
cancel();
}
- if (m_presenter)
- m_presenter->notificationObjectDestroyed(this);
}
void Notification::show()
@@ -140,6 +138,12 @@ EventTargetData* Notification::ensureEventTargetData()
return &m_eventTargetData;
}
+void Notification::contextDestroyed()
+{
+ ActiveDOMObject::contextDestroyed();
+ if (m_presenter)
+ m_presenter->notificationObjectDestroyed(this);
+}
void Notification::startLoading()
{