| 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 d0011ef61e5c6130560ce20b823ca28e77e11caa..513288579dbf9325567bb90516b4e59c98567b3e 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| @@ -613,10 +613,11 @@ void FrameFetchContext::RecordLoadingActivity(
|
| }
|
|
|
| void FrameFetchContext::DidLoadResource(Resource* resource) {
|
| + if (!GetDocument())
|
| + return;
|
| + FirstMeaningfulPaintDetector::From(*GetDocument()).CheckNetworkStable();
|
| if (resource->IsLoadEventBlockingResourceType())
|
| - GetFrame()->Loader().CheckCompleted();
|
| - if (GetDocument())
|
| - FirstMeaningfulPaintDetector::From(*GetDocument()).CheckNetworkStable();
|
| + GetDocument()->CheckCompleted();
|
| }
|
|
|
| void FrameFetchContext::AddResourceTiming(const ResourceTimingInfo& info) {
|
|
|