| Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| index 074ddd83efbbd192e16f1e4075ad0b34eecd2604..75c5906af252a94d50b9bda0ea47272ca2b2bdb2 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -687,13 +687,6 @@ WebPerformance WebLocalFrameImpl::performance() const
|
| return WebPerformance(DOMWindowPerformance::performance(*(frame()->domWindow())));
|
| }
|
|
|
| -bool WebLocalFrameImpl::dispatchBeforeUnloadEvent()
|
| -{
|
| - if (!frame())
|
| - return true;
|
| - return frame()->loader().shouldClose();
|
| -}
|
| -
|
| void WebLocalFrameImpl::dispatchUnloadEvent()
|
| {
|
| if (!frame())
|
| @@ -1847,6 +1840,14 @@ void WebLocalFrameImpl::sendPings(const WebURL& destinationURL)
|
| toHTMLAnchorElement(anchor)->sendPings(destinationURL);
|
| }
|
|
|
| +bool WebLocalFrameImpl::dispatchBeforeUnloadEvent(bool isReload)
|
| +{
|
| + if (!frame())
|
| + return true;
|
| +
|
| + return frame()->loader().shouldClose(isReload);
|
| +}
|
| +
|
| WebURLRequest WebLocalFrameImpl::requestFromHistoryItem(const WebHistoryItem& item, WebCachePolicy cachePolicy) const
|
| {
|
| HistoryItem* historyItem = item;
|
|
|