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

Unified Diff: third_party/WebKit/WebCore/dom/Document.cpp

Issue 9746: Change old code from "unloadListnerChanged" model to new WebKit EnableSuddenT... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « third_party/WebKit/WebCore/dom/Document.h ('k') | third_party/WebKit/WebCore/loader/EmptyClients.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/dom/Document.cpp
===================================================================
--- third_party/WebKit/WebCore/dom/Document.cpp (revision 5109)
+++ third_party/WebKit/WebCore/dom/Document.cpp (working copy)
@@ -2897,12 +2897,6 @@
m_frame->eventHandler()->removePendingFrameBeforeUnloadEventCount();
}
-bool Document::hasUnloadEventListener()
-{
- return (hasWindowEventListener(eventNames().unloadEvent) ||
- hasWindowEventListener(eventNames().beforeunloadEvent));
-}
-
PassRefPtr<EventListener> Document::createEventListener(const String& functionName, const String& code, Node* node)
{
Frame* frm = frame();
« no previous file with comments | « third_party/WebKit/WebCore/dom/Document.h ('k') | third_party/WebKit/WebCore/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698