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

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

Issue 2809733003: Move most of FrameLoader::CheckCompleted() to Document (Closed)
Patch Set: processingLoadEvent() as part of shouldComplete(), cleanup shouldComplete() 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 ec6f92f5133370fd4c4e1363cd669515cdae0403..b5e7b5d95bf7df562944a2a7ef0ef7d920d0af11 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -627,10 +627,11 @@ void FrameFetchContext::RecordLoadingActivity(
}
void FrameFetchContext::DidLoadResource(Resource* resource) {
+ if (!document_)
+ return;
if (resource->IsLoadEventBlockingResourceType())
- GetFrame()->Loader().CheckCompleted();
- if (document_)
- FirstMeaningfulPaintDetector::From(*document_).CheckNetworkStable();
+ document_->CheckCompleted();
+ FirstMeaningfulPaintDetector::From(*document_).CheckNetworkStable();
}
void FrameFetchContext::AddResourceTiming(const ResourceTimingInfo& info) {

Powered by Google App Engine
This is Rietveld 408576698