Call incrementStatsCounter directly
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2012 15:03:29 +0000 (15:03 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2012 15:03:29 +0000 (15:03 +0000)
https://bugs.webkit.org/show_bug.cgi?id=83023

Patch by Mark Pilgrim <pilgrim@chromium.org> on 2012-04-03
Reviewed by Kentaro Hara.

Source/WebCore:

* bindings/v8/V8Proxy.h:
* platform/chromium/PlatformSupport.h:
(PlatformSupport):

Source/WebKit/chromium:

* src/PlatformSupport.cpp:
(WebCore):
* src/WebFrameImpl.cpp:
(WebKit::WebFrameImpl::WebFrameImpl):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113034 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/v8/V8Proxy.h
Source/WebCore/platform/chromium/PlatformSupport.h
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/PlatformSupport.cpp
Source/WebKit/chromium/src/WebFrameImpl.cpp

index 7f5801d..4541ba6 100644 (file)
@@ -1,3 +1,14 @@
+2012-04-03  Mark Pilgrim  <pilgrim@chromium.org>
+
+        Call incrementStatsCounter directly
+        https://bugs.webkit.org/show_bug.cgi?id=83023
+
+        Reviewed by Kentaro Hara.
+
+        * bindings/v8/V8Proxy.h:
+        * platform/chromium/PlatformSupport.h:
+        (PlatformSupport):
+
 2012-04-03  Sami Kyostila  <skyostil@chromium.org>
 
         [chromium] Canvas2DLayerChromium::updateCompositorResources should flush after copying
index 9d15ba5..8b269e4 100644 (file)
@@ -46,7 +46,7 @@
 #include <wtf/text/TextPosition.h>
 
 #if defined(ENABLE_DOM_STATS_COUNTERS) && PLATFORM(CHROMIUM)
-#define INC_STATS(name) PlatformSupport::incrementStatsCounter(name)
+#define INC_STATS(name) webkitPlatformSupport()->incrementStatsCounter(name)
 #else
 #define INC_STATS(name)
 #endif
index 26a1423..7784695 100644 (file)
@@ -260,7 +260,6 @@ public:
     static void stopSharedTimer();
 
     // StatsCounters ------------------------------------------------------
-    static void incrementStatsCounter(const char* name);
     static void histogramCustomCounts(const char* name, int sample, int min, int max, int bucketCount);
     static void histogramEnumeration(const char* name, int sample, int boundaryValue);
 
index ea20a92..8a44329 100644 (file)
@@ -1,3 +1,15 @@
+2012-04-03  Mark Pilgrim  <pilgrim@chromium.org>
+
+        Call incrementStatsCounter directly
+        https://bugs.webkit.org/show_bug.cgi?id=83023
+
+        Reviewed by Kentaro Hara.
+
+        * src/PlatformSupport.cpp:
+        (WebCore):
+        * src/WebFrameImpl.cpp:
+        (WebKit::WebFrameImpl::WebFrameImpl):
+
 2012-04-03  Sami Kyostila  <skyostil@chromium.org>
 
         [chromium] Canvas2DLayerChromium::updateCompositorResources should flush after copying
index 26f5e93..a795d95 100644 (file)
@@ -713,11 +713,6 @@ void PlatformSupport::stopSharedTimer()
 
 // StatsCounters --------------------------------------------------------------
 
-void PlatformSupport::incrementStatsCounter(const char* name)
-{
-    webKitPlatformSupport()->incrementStatsCounter(name);
-}
-
 void PlatformSupport::histogramCustomCounts(const char* name, int sample, int min, int max, int bucketCount)
 {
     webKitPlatformSupport()->histogramCustomCounts(name, sample, min, max, bucketCount);
index b7a31ff..0e58aa1 100644 (file)
@@ -1976,7 +1976,7 @@ WebFrameImpl::WebFrameImpl(WebFrameClient* client)
     , m_identifier(generateFrameIdentifier())
     , m_inSameDocumentHistoryLoad(false)
 {
-    PlatformSupport::incrementStatsCounter(webFrameActiveCount);
+    WebKit::Platform::current()->incrementStatsCounter(webFrameActiveCount);
     frameCount++;
 }