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 1bcf7cab21db16cd87719b0c151f544797d0cd2c..6afd6a6cf5f21aeaf0b98b106cd58071c051c9f8 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
@@ -413,7 +413,7 @@ void FrameFetchContext::dispatchWillSendRequest( |
frame()->loader().progress().willStartLoading(identifier, |
request.priority()); |
} |
- InspectorInstrumentation::willSendRequest(frame()->document(), identifier, |
+ InspectorInstrumentation::willSendRequest(frame(), identifier, |
masterDocumentLoader(), request, |
redirectResponse, initiatorInfo); |
if (frame()->frameScheduler()) |
@@ -467,8 +467,8 @@ void FrameFetchContext::dispatchDidFinishLoading(unsigned long identifier, |
InspectorResourceFinishEvent::data(identifier, finishTime, false, |
encodedDataLength)); |
frame()->loader().progress().completeProgress(identifier); |
- InspectorInstrumentation::didFinishLoading(frame()->document(), identifier, |
- finishTime, encodedDataLength); |
+ InspectorInstrumentation::didFinishLoading(frame(), identifier, finishTime, |
+ encodedDataLength); |
if (frame()->frameScheduler()) |
frame()->frameScheduler()->didStopLoading(identifier); |
} |
@@ -481,8 +481,7 @@ void FrameFetchContext::dispatchDidFail(unsigned long identifier, |
InspectorResourceFinishEvent::data(identifier, 0, true, |
encodedDataLength)); |
frame()->loader().progress().completeProgress(identifier); |
- InspectorInstrumentation::didFailLoading(frame()->document(), identifier, |
- error); |
+ InspectorInstrumentation::didFailLoading(frame(), identifier, error); |
// Notification to FrameConsole should come AFTER InspectorInstrumentation |
// call, DevTools front-end relies on this. |
if (!isInternalRequest) |
@@ -1053,7 +1052,7 @@ void FrameFetchContext::dispatchDidReceiveResponseInternal( |
frameLoaderClient()->dispatchDidReceiveResponse(response); |
DocumentLoader* documentLoader = masterDocumentLoader(); |
InspectorInstrumentation::didReceiveResourceResponse( |
- frame()->document(), identifier, documentLoader, response, resource); |
+ frame(), identifier, documentLoader, response, resource); |
// It is essential that inspector gets resource response BEFORE console. |
frame()->console().reportResourceResponseReceived(documentLoader, identifier, |
response); |