Index: Source/core/fetch/ResourceFetcher.cpp |
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp |
index e5b18effe8e32610574c9f39bc2cbbc806c80af2..7c25ea95bd11cb7278023f60278602230ffb1ad6 100644 |
--- a/Source/core/fetch/ResourceFetcher.cpp |
+++ b/Source/core/fetch/ResourceFetcher.cpp |
@@ -180,10 +180,8 @@ static void reportResourceTiming(ResourceTimingInfo* info, Document* initiatorDo |
initiatorDocument = initiatorDocument->parentDocument(); |
if (!initiatorDocument || !initiatorDocument->loader()) |
return; |
- if (DOMWindow* initiatorWindow = initiatorDocument->domWindow()) { |
- if (Performance* performance = initiatorWindow->performance()) |
- performance->addResourceTiming(*info, initiatorDocument); |
- } |
+ if (DOMWindow* initiatorWindow = initiatorDocument->domWindow()) |
+ initiatorWindow->performance().addResourceTiming(*info, initiatorDocument); |
} |
static ResourceRequest::TargetType requestTargetType(const ResourceFetcher* fetcher, const ResourceRequest& request, Resource::Type type) |