| 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 5250e551593f0ea486b13bce87abff37147f8188..24a23eb9dea15d6035a6cc9568e802983c4e90e0 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -688,13 +688,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())
|
| @@ -1830,6 +1823,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;
|
|
|