Diff
Modified: trunk/Source/WebCore/CMakeLists.txt (103130 => 103131)
--- trunk/Source/WebCore/CMakeLists.txt 2011-12-17 00:32:40 UTC (rev 103130)
+++ trunk/Source/WebCore/CMakeLists.txt 2011-12-17 00:58:33 UTC (rev 103131)
@@ -1046,6 +1046,7 @@
platform/FileSystem.cpp
platform/ClockGeneric.cpp
platform/GeolocationService.cpp
+ platform/HistogramSupport.cpp
platform/KURL.cpp
platform/KillRingNone.cpp
platform/Language.cpp
Modified: trunk/Source/WebCore/ChangeLog (103130 => 103131)
--- trunk/Source/WebCore/ChangeLog 2011-12-17 00:32:40 UTC (rev 103130)
+++ trunk/Source/WebCore/ChangeLog 2011-12-17 00:58:33 UTC (rev 103131)
@@ -1,3 +1,27 @@
+2011-12-16 Rafael Weinstein <rafa...@chromium.org>
+
+ [MutationObservers] Remove platform-dependent code in Document.cpp resulting from Mutation Event histogram collection
+ https://bugs.webkit.org/show_bug.cgi?id=73026
+
+ Reviewed by Ryosuke Niwa.
+
+ This patch adds platform/HistogramSupport which has an empty implementation for all ports
+ except Chromium.
+
+ No tests need. This patch is just a refactor.
+
+ * GNUmakefile.list.am:
+ * Target.pri:
+ * WebCore.gypi:
+ * WebCore.xcodeproj/project.pbxproj:
+ * dom/Document.cpp:
+ (WebCore::histogramMutationEventUsage):
+ (WebCore::Document::~Document):
+ * platform/HistogramSupport.h: Added.
+ (WebCore::HistogramSupport::histogramEnumeration):
+ * platform/chromium/HistogramSupportChromium.cpp: Added.
+ (WebCore::HistogramSupport::histogramEnumeration):
+
2011-12-16 Brady Eidson <beid...@apple.com>
<rdar://problem/10576732> and https://bugs.webkit.org/show_bug.cgi?id=74533
Modified: trunk/Source/WebCore/GNUmakefile.list.am (103130 => 103131)
--- trunk/Source/WebCore/GNUmakefile.list.am 2011-12-17 00:32:40 UTC (rev 103130)
+++ trunk/Source/WebCore/GNUmakefile.list.am 2011-12-17 00:58:33 UTC (rev 103131)
@@ -2510,6 +2510,8 @@
Source/WebCore/platform/GeolocationService.cpp \
Source/WebCore/platform/GeolocationService.h \
Source/WebCore/platform/HashTools.h \
+ Source/WebCore/platform/HistogramSupport.cop \
+ Source/WebCore/platform/HistogramSupport.h \
Source/WebCore/platform/graphics/BitmapImage.cpp \
Source/WebCore/platform/graphics/BitmapImage.h \
Source/WebCore/platform/graphics/Color.cpp \
Modified: trunk/Source/WebCore/Target.pri (103130 => 103131)
--- trunk/Source/WebCore/Target.pri 2011-12-17 00:32:40 UTC (rev 103130)
+++ trunk/Source/WebCore/Target.pri 2011-12-17 00:58:33 UTC (rev 103131)
@@ -1031,6 +1031,7 @@
platform/FileStream.cpp \
platform/FileSystem.cpp \
platform/GeolocationService.cpp \
+ platform/HistogramSupport.cpp \
platform/image-decoders/qt/ImageFrameQt.cpp \
platform/graphics/FontDescription.cpp \
platform/graphics/FontFallbackList.cpp \
@@ -2073,6 +2074,7 @@
platform/FileStreamClient.h \
platform/FileSystem.h \
platform/GeolocationService.h \
+ platform/HistogramSupport.h \
platform/image-decoders/ImageDecoder.h \
platform/mock/DeviceOrientationClientMock.h \
platform/mock/GeolocationClientMock.cpp \
Modified: trunk/Source/WebCore/WebCore.gypi (103130 => 103131)
--- trunk/Source/WebCore/WebCore.gypi 2011-12-17 00:32:40 UTC (rev 103130)
+++ trunk/Source/WebCore/WebCore.gypi 2011-12-17 00:58:33 UTC (rev 103131)
@@ -682,6 +682,7 @@
'platform/FileStreamClient.h',
'platform/FileSystem.h',
'platform/HostWindow.h',
+ 'platform/HistogramSupport.h',
'platform/KURL.h',
'platform/KURLHash.h',
'platform/Language.h',
@@ -3278,6 +3279,7 @@
'platform/chromium/GamepadsChromium.cpp',
'platform/chromium/GestureRecognizerChromium.cpp',
'platform/chromium/GestureRecognizerChromium.h',
+ 'platform/chromium/HistogramSupportChromium.cpp',
'platform/chromium/KeyCodeConversion.h',
'platform/chromium/KeyCodeConversionAndroid.cpp',
'platform/chromium/KeyCodeConversionGtk.cpp',
Modified: trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj (103130 => 103131)
--- trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj 2011-12-17 00:32:40 UTC (rev 103130)
+++ trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj 2011-12-17 00:58:33 UTC (rev 103131)
@@ -26525,6 +26525,14 @@
RelativePath="..\platform\GeolocationService.h"
>
</File>
+ <File
+ RelativePath="..\platform\HistogramSupport.cpp"
+ >
+ </File>
+ <File
+ RelativePath="..\platform\HistogramSupport.h"
+ >
+ </File>
<File
RelativePath="..\platform\HostWindow.h"
>
Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (103130 => 103131)
--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2011-12-17 00:32:40 UTC (rev 103130)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2011-12-17 00:58:33 UTC (rev 103131)
@@ -5843,10 +5843,12 @@
D3D4E973130C7CFE007BA540 /* HTMLSummaryElement.h in Headers */ = {isa = PBXBuildFile; fileRef = D3D4E971130C7CFE007BA540 /* HTMLSummaryElement.h */; };
D619A307144E00BE004BC302 /* ChildListMutationScope.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D619A305144E00BE004BC302 /* ChildListMutationScope.cpp */; };
D619A308144E00BE004BC302 /* ChildListMutationScope.h in Headers */ = {isa = PBXBuildFile; fileRef = D619A306144E00BE004BC302 /* ChildListMutationScope.h */; };
+ D630E2AC149BF344005B2F93 /* HistogramSupport.h in Headers */ = {isa = PBXBuildFile; fileRef = D630E2AB149BF344005B2F93 /* HistogramSupport.h */; };
D6E276AF14637455001D280A /* MutationObserverRegistration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D6E276AD14637455001D280A /* MutationObserverRegistration.cpp */; };
D6E276B014637455001D280A /* MutationObserverRegistration.h in Headers */ = {isa = PBXBuildFile; fileRef = D6E276AE14637455001D280A /* MutationObserverRegistration.h */; };
D6E528A3149A926D00EFE1F3 /* MutationObserverInterestGroup.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D6E528A1149A926D00EFE1F3 /* MutationObserverInterestGroup.cpp */; };
D6E528A4149A926D00EFE1F3 /* MutationObserverInterestGroup.h in Headers */ = {isa = PBXBuildFile; fileRef = D6E528A2149A926D00EFE1F3 /* MutationObserverInterestGroup.h */; };
+ D6FDAEF3149C06190037B1E1 /* HistogramSupport.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D6FDAEF2149C06190037B1E1 /* HistogramSupport.cpp */; };
D70AD65713E1342B005B50B4 /* RenderRegion.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D70AD65513E1342B005B50B4 /* RenderRegion.cpp */; };
D70AD65813E1342B005B50B4 /* RenderRegion.h in Headers */ = {isa = PBXBuildFile; fileRef = D70AD65613E1342B005B50B4 /* RenderRegion.h */; };
D7613A501474F13F00DB8606 /* WebKitNamedFlow.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D7613A4E1474F13F00DB8606 /* WebKitNamedFlow.cpp */; };
@@ -13237,10 +13239,12 @@
D3D4E971130C7CFE007BA540 /* HTMLSummaryElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLSummaryElement.h; sourceTree = "<group>"; };
D619A305144E00BE004BC302 /* ChildListMutationScope.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ChildListMutationScope.cpp; sourceTree = "<group>"; };
D619A306144E00BE004BC302 /* ChildListMutationScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ChildListMutationScope.h; sourceTree = "<group>"; };
+ D630E2AB149BF344005B2F93 /* HistogramSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HistogramSupport.h; sourceTree = "<group>"; };
D6E276AD14637455001D280A /* MutationObserverRegistration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MutationObserverRegistration.cpp; sourceTree = "<group>"; };
D6E276AE14637455001D280A /* MutationObserverRegistration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MutationObserverRegistration.h; sourceTree = "<group>"; };
D6E528A1149A926D00EFE1F3 /* MutationObserverInterestGroup.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MutationObserverInterestGroup.cpp; sourceTree = "<group>"; };
D6E528A2149A926D00EFE1F3 /* MutationObserverInterestGroup.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MutationObserverInterestGroup.h; sourceTree = "<group>"; };
+ D6FDAEF2149C06190037B1E1 /* HistogramSupport.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HistogramSupport.cpp; sourceTree = "<group>"; };
D70AD65513E1342B005B50B4 /* RenderRegion.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderRegion.cpp; sourceTree = "<group>"; };
D70AD65613E1342B005B50B4 /* RenderRegion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderRegion.h; sourceTree = "<group>"; };
D7613A4A1474EE9500DB8606 /* WebKitNamedFlow.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WebKitNamedFlow.idl; sourceTree = "<group>"; };
@@ -20240,6 +20244,8 @@
514B3F720C722047000530DF /* FileSystem.h */,
BC073BA90C399B1F000F5979 /* FloatConversion.h */,
A8748BDF12CBF2DC001FBA41 /* HashTools.h */,
+ D6FDAEF2149C06190037B1E1 /* HistogramSupport.cpp */,
+ D630E2AB149BF344005B2F93 /* HistogramSupport.h */,
BC3BC29B0E91AB0F00835588 /* HostWindow.h */,
521D46F711AEC9B100514613 /* KillRing.h */,
4306E4E514955543007F17AC /* KillRingNone.cpp */,
@@ -23000,6 +23006,7 @@
A8748BE012CBF2DC001FBA41 /* HashTools.h in Headers */,
F55B3DC01251F12D003EF269 /* HiddenInputType.h in Headers */,
FD31603312B0267600C1A359 /* HighPass2FilterNode.h in Headers */,
+ D630E2AC149BF344005B2F93 /* HistogramSupport.h in Headers */,
BC94D1540C275C8B006BC617 /* History.h in Headers */,
97DCE20210807C750057D394 /* HistoryController.h in Headers */,
51741D110B07259A00ED442C /* HistoryItem.h in Headers */,
@@ -26013,6 +26020,7 @@
C50B561612119D23008B46E0 /* GroupSettings.cpp in Sources */,
F55B3DBF1251F12D003EF269 /* HiddenInputType.cpp in Sources */,
FD31603212B0267600C1A359 /* HighPass2FilterNode.cpp in Sources */,
+ D6FDAEF3149C06190037B1E1 /* HistogramSupport.cpp in Sources */,
BC94D1530C275C8B006BC617 /* History.cpp in Sources */,
97DCE20110807C750057D394 /* HistoryController.cpp in Sources */,
51741D120B07259A00ED442C /* HistoryItem.cpp in Sources */,
Modified: trunk/Source/WebCore/dom/Document.cpp (103130 => 103131)
--- trunk/Source/WebCore/dom/Document.cpp 2011-12-17 00:32:40 UTC (rev 103130)
+++ trunk/Source/WebCore/dom/Document.cpp 2011-12-17 00:58:33 UTC (rev 103131)
@@ -77,6 +77,7 @@
#include "FrameView.h"
#include "GeolocationController.h"
#include "HashChangeEvent.h"
+#include "HistogramSupport.h"
#include "HTMLAllCollection.h"
#include "HTMLAnchorElement.h"
#include "HTMLBodyElement.h"
@@ -160,10 +161,6 @@
#include <wtf/StdLibExtras.h>
#include <wtf/text/StringBuffer.h>
-#if PLATFORM(CHROMIUM)
-#include "PlatformSupport.h"
-#endif
-
#if ENABLE(SHARED_WORKERS)
#include "SharedWorkerRepository.h"
#endif
@@ -502,17 +499,15 @@
m_docID = docID++;
}
-#if PLATFORM(CHROMIUM)
static void histogramMutationEventUsage(const unsigned short& listenerTypes)
{
- PlatformSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMSubtreeModified", static_cast<bool>(listenerTypes & Document::DOMSUBTREEMODIFIED_LISTENER), 2);
- PlatformSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMNodeInserted", static_cast<bool>(listenerTypes & Document::DOMNODEINSERTED_LISTENER), 2);
- PlatformSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMNodeRemoved", static_cast<bool>(listenerTypes & Document::DOMNODEREMOVED_LISTENER), 2);
- PlatformSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMNodeRemovedFromDocument", static_cast<bool>(listenerTypes & Document::DOMNODEREMOVEDFROMDOCUMENT_LISTENER), 2);
- PlatformSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMNodeInsertedIntoDocument", static_cast<bool>(listenerTypes & Document::DOMNODEINSERTEDINTODOCUMENT_LISTENER), 2);
- PlatformSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMCharacterDataModified", static_cast<bool>(listenerTypes & Document::DOMCHARACTERDATAMODIFIED_LISTENER), 2);
+ HistogramSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMSubtreeModified", static_cast<bool>(listenerTypes & Document::DOMSUBTREEMODIFIED_LISTENER), 2);
+ HistogramSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMNodeInserted", static_cast<bool>(listenerTypes & Document::DOMNODEINSERTED_LISTENER), 2);
+ HistogramSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMNodeRemoved", static_cast<bool>(listenerTypes & Document::DOMNODEREMOVED_LISTENER), 2);
+ HistogramSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMNodeRemovedFromDocument", static_cast<bool>(listenerTypes & Document::DOMNODEREMOVEDFROMDOCUMENT_LISTENER), 2);
+ HistogramSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMNodeInsertedIntoDocument", static_cast<bool>(listenerTypes & Document::DOMNODEINSERTEDINTODOCUMENT_LISTENER), 2);
+ HistogramSupport::histogramEnumeration("DOMAPI.PerDocumentMutationEventUsage.DOMCharacterDataModified", static_cast<bool>(listenerTypes & Document::DOMCHARACTERDATAMODIFIED_LISTENER), 2);
}
-#endif
Document::~Document()
{
@@ -526,9 +521,7 @@
m_scriptRunner.clear();
-#if PLATFORM(CHROMIUM)
histogramMutationEventUsage(m_listenerTypes);
-#endif
removeAllEventListeners();
Added: trunk/Source/WebCore/platform/HistogramSupport.cpp (0 => 103131)
--- trunk/Source/WebCore/platform/HistogramSupport.cpp (rev 0)
+++ trunk/Source/WebCore/platform/HistogramSupport.cpp 2011-12-17 00:58:33 UTC (rev 103131)
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2011 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "HistogramSupport.h"
+
+namespace WebCore {
+
+void HistogramSupport::histogramEnumeration(const char*, int, int)
+{
+}
+
+} // namespace WebCore
Added: trunk/Source/WebCore/platform/HistogramSupport.h (0 => 103131)
--- trunk/Source/WebCore/platform/HistogramSupport.h (rev 0)
+++ trunk/Source/WebCore/platform/HistogramSupport.h 2011-12-17 00:58:33 UTC (rev 103131)
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2011 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef HistogramSupport_h
+#define HistogramSupport_h
+
+namespace WebCore {
+
+class HistogramSupport {
+public:
+ static void histogramEnumeration(const char* name, int sample, int boundaryValue);
+};
+
+} // namespace WebCore
+
+#endif // HistogramSupport_h
Added: trunk/Source/WebCore/platform/chromium/HistogramSupportChromium.cpp (0 => 103131)
--- trunk/Source/WebCore/platform/chromium/HistogramSupportChromium.cpp (rev 0)
+++ trunk/Source/WebCore/platform/chromium/HistogramSupportChromium.cpp 2011-12-17 00:58:33 UTC (rev 103131)
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2011 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "HistogramSupport.h"
+
+#include "PlatformSupport.h"
+
+namespace WebCore {
+
+void HistogramSupport::histogramEnumeration(const char* name, int sample, int boundaryValue)
+{
+ PlatformSupport::histogramEnumeration(name, sample, boundaryValue);
+}
+
+} // namespace WebCore