Title: [168857] trunk/Source/WebCore
Revision
168857
Author
achristen...@apple.com
Date
2014-05-14 13:03:40 -0700 (Wed, 14 May 2014)

Log Message

Unreviewed build fix after r168849.

* platform/network/mac/ResourceHandleMac.mm:
(WebCore::ResourceHandle::getTimingData):
Protect use of timing data with ENABLE(WEB_TIMING).

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (168856 => 168857)


--- trunk/Source/WebCore/ChangeLog	2014-05-14 19:14:50 UTC (rev 168856)
+++ trunk/Source/WebCore/ChangeLog	2014-05-14 20:03:40 UTC (rev 168857)
@@ -1,5 +1,13 @@
 2014-05-14  Alex Christensen  <achristen...@webkit.org>
 
+        Unreviewed build fix after r168849.
+
+        * platform/network/mac/ResourceHandleMac.mm:
+        (WebCore::ResourceHandle::getTimingData):
+        Protect use of timing data with ENABLE(WEB_TIMING).
+
+2014-05-14  Alex Christensen  <achristen...@webkit.org>
+
         Refactor duplicate code in web timing.
         https://bugs.webkit.org/show_bug.cgi?id=132917
 

Modified: trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm (168856 => 168857)


--- trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm	2014-05-14 19:14:50 UTC (rev 168856)
+++ trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm	2014-05-14 20:03:40 UTC (rev 168857)
@@ -372,6 +372,7 @@
     
 void ResourceHandle::getTimingData(NSURLConnection *connection, ResourceLoadTiming& timing)
 {
+#if ENABLE(WEB_TIMING)
     if (NSDictionary *timingData = [connection _timingData]) {
         // This is not the navigationStart time in monotonic time, but the other times are relative to this time
         // and only the differences between times are stored.
@@ -393,6 +394,7 @@
         timing.requestStart = requestStart <= 0 ? -1 : (requestStart - referenceStart) * 1000;
         timing.responseStart = responseStart <= 0 ? -1 : (responseStart - referenceStart) * 1000;
     }
+#endif
 }
     
 bool ResourceHandle::loadsBlocked()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to