Title: [90952] trunk/Source
Revision
90952
Author
[email protected]
Date
2011-07-13 14:51:14 -0700 (Wed, 13 Jul 2011)

Log Message

[chromium] No implementation defined for WTF::monotonicallyIncreasingTime
https://bugs.webkit.org/show_bug.cgi?id=64420

Reviewed by Tony Gentilcore.

Source/WebCore:

Removes some redundant time related code.

* platform/chromium/PlatformBridge.h:
* platform/chromium/SystemTimeChromium.cpp:
(WebCore::userIdleTime):

Source/WebKit/chromium:

Provides an implementation of WTF::monotonicallyIncreasingTime() alongside the implementation of
WTF::currentTime().

* src/ChromiumCurrentTime.cpp:
(WTF::monotonicallyIncreasingTime):
* src/PlatformBridge.cpp:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (90951 => 90952)


--- trunk/Source/WebCore/ChangeLog	2011-07-13 21:45:49 UTC (rev 90951)
+++ trunk/Source/WebCore/ChangeLog	2011-07-13 21:51:14 UTC (rev 90952)
@@ -1,3 +1,16 @@
+2011-07-13  James Robinson  <[email protected]>
+
+        [chromium] No implementation defined for WTF::monotonicallyIncreasingTime
+        https://bugs.webkit.org/show_bug.cgi?id=64420
+
+        Reviewed by Tony Gentilcore.
+
+        Removes some redundant time related code.
+
+        * platform/chromium/PlatformBridge.h:
+        * platform/chromium/SystemTimeChromium.cpp:
+        (WebCore::userIdleTime):
+
 2011-07-13  Vitaly Repeshko  <[email protected]>
 
         [V8] Avoid memory leaks with hidden references.

Modified: trunk/Source/WebCore/platform/chromium/PlatformBridge.h (90951 => 90952)


--- trunk/Source/WebCore/platform/chromium/PlatformBridge.h	2011-07-13 21:45:49 UTC (rev 90951)
+++ trunk/Source/WebCore/platform/chromium/PlatformBridge.h	2011-07-13 21:51:14 UTC (rev 90952)
@@ -246,10 +246,6 @@
     // Sudden Termination
     static void suddenTerminationChanged(bool enabled);
 
-    // SystemTime ---------------------------------------------------------
-    static double currentTime();
-    static double monotonicallyIncreasingTime();
-
     // Theming ------------------------------------------------------------
 #if OS(WINDOWS)
     static void paintButton(

Modified: trunk/Source/WebCore/platform/chromium/SystemTimeChromium.cpp (90951 => 90952)


--- trunk/Source/WebCore/platform/chromium/SystemTimeChromium.cpp	2011-07-13 21:45:49 UTC (rev 90951)
+++ trunk/Source/WebCore/platform/chromium/SystemTimeChromium.cpp	2011-07-13 21:51:14 UTC (rev 90952)
@@ -32,27 +32,14 @@
 #include "SystemTime.h"
 
 #include "NotImplemented.h"
-#include "PlatformBridge.h"
-#include <wtf/CurrentTime.h>
 
 namespace WebCore {
 
-// Get the current time in seconds since epoch.
-double currentTime()
-{
-    return PlatformBridge::currentTime();
-}
-
-double monotonicallyIncreasingTime()
-{
-    return PlatformBridge::monotonicallyIncreasingTime();
-}
-
 float userIdleTime()
 {
     // Needed for back/forward cache, which we currently have disabled.
     notImplemented();
-    return 0.0F;
+    return 0;
 }
 
 } // namespace WebCore

Modified: trunk/Source/WebKit/chromium/ChangeLog (90951 => 90952)


--- trunk/Source/WebKit/chromium/ChangeLog	2011-07-13 21:45:49 UTC (rev 90951)
+++ trunk/Source/WebKit/chromium/ChangeLog	2011-07-13 21:51:14 UTC (rev 90952)
@@ -1,3 +1,17 @@
+2011-07-13  James Robinson  <[email protected]>
+
+        [chromium] No implementation defined for WTF::monotonicallyIncreasingTime
+        https://bugs.webkit.org/show_bug.cgi?id=64420
+
+        Reviewed by Tony Gentilcore.
+
+        Provides an implementation of WTF::monotonicallyIncreasingTime() alongside the implementation of
+        WTF::currentTime().
+
+        * src/ChromiumCurrentTime.cpp:
+        (WTF::monotonicallyIncreasingTime):
+        * src/PlatformBridge.cpp:
+
 2011-07-13  Vsevolod Vlasov  <[email protected]>
 
         Chromium DevTools: Enable clear cache and cookies from network panel in chromium.

Modified: trunk/Source/WebKit/chromium/src/ChromiumCurrentTime.cpp (90951 => 90952)


--- trunk/Source/WebKit/chromium/src/ChromiumCurrentTime.cpp	2011-07-13 21:45:49 UTC (rev 90951)
+++ trunk/Source/WebKit/chromium/src/ChromiumCurrentTime.cpp	2011-07-13 21:51:14 UTC (rev 90952)
@@ -41,4 +41,9 @@
     return WebKit::webKitClient()->currentTime();
 }
 
+double monotonicallyIncreasingTime()
+{
+    return WebKit::webKitClient()->monotonicallyIncreasingTime();
+}
+
 }  // namespace WTF

Modified: trunk/Source/WebKit/chromium/src/PlatformBridge.cpp (90951 => 90952)


--- trunk/Source/WebKit/chromium/src/PlatformBridge.cpp	2011-07-13 21:45:49 UTC (rev 90951)
+++ trunk/Source/WebKit/chromium/src/PlatformBridge.cpp	2011-07-13 21:51:14 UTC (rev 90952)
@@ -704,18 +704,6 @@
     webKitClient()->suddenTerminationChanged(enabled);
 }
 
-// SystemTime -----------------------------------------------------------------
-
-double PlatformBridge::currentTime()
-{
-    return webKitClient()->currentTime();
-}
-
-double PlatformBridge::monotonicallyIncreasingTime()
-{
-    return webKitClient()->monotonicallyIncreasingTime();
-}
-
 // Theming --------------------------------------------------------------------
 
 #if OS(WINDOWS)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to