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

Unified Diff: Source/core/frame/LocalFrame.cpp

Issue 806183005: Remove FrameLoader's checkLoadComplete and checkLoadCompleteForThisFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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/core/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index 8184d8cae55ed15530f1a6ba35f8b81530510334..b9eff81a824db4720cc296ef2df9cabb0693340c 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -293,11 +293,6 @@ SecurityContext* LocalFrame::securityContext() const
return document();
}
-bool LocalFrame::checkLoadComplete()
-{
- return loader().checkLoadCompleteForThisFrame();
-}
-
void LocalFrame::printNavigationErrorMessage(const Frame& targetFrame, const char* reason)
{
if (!targetFrame.isLocalFrame())
@@ -310,6 +305,11 @@ void LocalFrame::printNavigationErrorMessage(const Frame& targetFrame, const cha
targetLocalFrame.localDOMWindow()->printErrorMessage(message);
}
+bool LocalFrame::isLoadingAsChild() const
+{
+ return isLoading() || !document()->isLoadCompleted();
+}
+
void LocalFrame::disconnectOwnerElement()
{
if (owner()) {

Powered by Google App Engine
This is Rietveld 408576698