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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 220233008: Move dispatchUnloadEvent to WebFrame, part 3/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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/web/WebViewImpl.h ('k') | public/web/WebView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 11df1f3f62de0004d6636c61b418a41a7b9ad9e9..7b207a1ec925c38bf6e7a881b0613b4c007ab979 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -2401,16 +2401,6 @@ void WebViewImpl::setPageEncoding(const WebString& encodingName)
m_page->mainFrame()->loader().reload(NormalReload, KURL(), newEncodingName);
}
-void WebViewImpl::dispatchUnloadEvent()
-{
- WebFrame* frame = mainFrame();
- if (!frame)
- return;
-
- // Run unload handlers.
- frame->dispatchUnloadEvent();
-}
-
WebFrame* WebViewImpl::mainFrame()
{
return mainFrameImpl();
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698