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

Unified Diff: third_party/WebKit/Source/web/WebFrame.cpp

Issue 1381003004: Better distinguish didFinishLoad and didStopLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: third_party/WebKit/Source/web/WebFrame.cpp
diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp
index 5e979c40ed4872e19c0d7a41a73e207ada4aca20..15ef95fe1feff9f8449644d7be8113682981256e 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -281,6 +281,13 @@ WebFrame* WebFrame::fromFrameOwnerElement(const WebElement& webElement)
return fromFrame(toHTMLFrameElementBase(element)->contentFrame());
}
+bool WebFrame::isLoading() const
+{
+ if (Frame* frame = toCoreFrame(this))
+ return frame->isLoading();
+ return false;
+}
+
WebFrame* WebFrame::fromFrame(Frame* frame)
{
if (!frame)
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698