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

Unified Diff: third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp

Issue 2809733003: Move most of FrameLoader::CheckCompleted() to Document (Closed)
Patch Set: Fix failing android test Created 3 years, 8 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/core/html/imports/HTMLImportTreeRoot.cpp
diff --git a/third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp b/third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp
index ed535ae80735fdb2fd2d69084ee160bb42a5a94f..e04c8af5b8aeb8bc4982023499a8460994975c44 100644
--- a/third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp
+++ b/third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp
@@ -51,10 +51,8 @@ void HTMLImportTreeRoot::StateWillChange() {
void HTMLImportTreeRoot::StateDidChange() {
HTMLImport::StateDidChange();
- if (!GetState().IsReady())
- return;
- if (LocalFrame* frame = document_->GetFrame())
- frame->Loader().CheckCompleted();
+ if (GetState().IsReady())
+ document_->CheckCompleted();
}
void HTMLImportTreeRoot::ScheduleRecalcState() {
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentTest.cpp ('k') | third_party/WebKit/Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698