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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 2836103003: Revert of Move most of FrameLoader::CheckCompleted() to Document (Closed)
Patch Set: 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/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index 9ce771840c4b86d08c2a4e4b5812c4f8ed3ea308..aad2404223ad5a4d6ec402328f81e4ac9c6f6034 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -616,11 +616,10 @@
}
void FrameFetchContext::DidLoadResource(Resource* resource) {
- if (!GetDocument())
- return;
- FirstMeaningfulPaintDetector::From(*GetDocument()).CheckNetworkStable();
if (resource->IsLoadEventBlockingResourceType())
- GetDocument()->CheckCompleted();
+ GetFrame()->Loader().CheckCompleted();
+ if (GetDocument())
+ FirstMeaningfulPaintDetector::From(*GetDocument()).CheckNetworkStable();
}
void FrameFetchContext::AddResourceTiming(const ResourceTimingInfo& info) {

Powered by Google App Engine
This is Rietveld 408576698