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

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, 2 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
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 98042f6431e1ae83107a2ba1ef6af0f1cef8498a..cd2d54dd8d549203fe075624b382c1a2021ae3ab 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -275,6 +275,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)

Powered by Google App Engine
This is Rietveld 408576698