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

Unified Diff: Source/web/WebFrameImpl.cpp

Issue 24286007: Add hasCommittedRealDocument API to WebFrame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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: Source/web/WebFrameImpl.cpp
diff --git a/Source/web/WebFrameImpl.cpp b/Source/web/WebFrameImpl.cpp
index 6cfb39d7ab9b68c61ccfe700216627a9f822023a..589ffd92112feeea173f692374e1d2dcbdec48aa 100644
--- a/Source/web/WebFrameImpl.cpp
+++ b/Source/web/WebFrameImpl.cpp
@@ -982,6 +982,13 @@ void WebFrameImpl::stopLoading()
frame()->loader()->stopAllLoaders();
}
+bool WebFrameImpl::hasCommittedRealDocument() const
+{
+ if (!frame())
+ return false;
+ return frame()->loader()->stateMachine()->committedFirstRealDocumentLoad();
+}
+
WebDataSource* WebFrameImpl::provisionalDataSource() const
{
ASSERT(frame());
« no previous file with comments | « Source/web/WebFrameImpl.h ('k') | public/web/WebFrame.h » ('j') | public/web/WebFrame.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698