Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Unified Diff: Source/core/css/CSSGradientValue.cpp

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSGradientValue.h ('k') | Source/core/css/CSSGroupingRule.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGradientValue.cpp
diff --git a/Source/core/css/CSSGradientValue.cpp b/Source/core/css/CSSGradientValue.cpp
index 8f168ab72ce30756de0341784df800fd3760bf2e..f20f472d09e3cfbe4d2fe922a5901ef93c393cdb 100644
--- a/Source/core/css/CSSGradientValue.cpp
+++ b/Source/core/css/CSSGradientValue.cpp
@@ -36,8 +36,6 @@
#include "NodeRenderStyle.h"
#include "RenderObject.h"
#include "StyleResolver.h"
-#include "WebCoreMemoryInstrumentation.h"
-#include <wtf/MemoryInstrumentationVector.h>
#include <wtf/text/StringBuilder.h>
#include <wtf/text/WTFString.h>
@@ -45,13 +43,6 @@ using namespace std;
namespace WebCore {
-void CSSGradientColorStop::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
-{
- MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
- info.addMember(m_position, "position");
- info.addMember(m_color, "color");
-}
-
PassRefPtr<Image> CSSGradientValue::image(RenderObject* renderer, const IntSize& size)
{
if (size.isEmpty())
@@ -471,17 +462,6 @@ bool CSSGradientValue::knownToBeOpaque(const RenderObject*) const
return true;
}
-void CSSGradientValue::reportBaseClassMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
-{
- MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
- CSSImageGeneratorValue::reportBaseClassMemoryUsage(memoryObjectInfo);
- info.addMember(m_firstX, "firstX");
- info.addMember(m_firstY, "firstY");
- info.addMember(m_secondX, "secondX");
- info.addMember(m_secondY, "secondY");
- info.addMember(m_stops, "stops");
-}
-
String CSSLinearGradientValue::customCssText() const
{
StringBuilder result;
@@ -755,13 +735,6 @@ bool CSSLinearGradientValue::equals(const CSSLinearGradientValue& other) const
return equalXorY && m_stops == other.m_stops;
}
-void CSSLinearGradientValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
-{
- MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
- CSSGradientValue::reportBaseClassMemoryUsage(memoryObjectInfo);
- info.addMember(m_angle, "angle");
-}
-
String CSSRadialGradientValue::customCssText() const
{
StringBuilder result;
@@ -1190,16 +1163,4 @@ bool CSSRadialGradientValue::equals(const CSSRadialGradientValue& other) const
return equalShape && equalSizingBehavior && equalHorizontalAndVerticalSize && m_stops == other.m_stops;
}
-void CSSRadialGradientValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
-{
- MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
- CSSGradientValue::reportBaseClassMemoryUsage(memoryObjectInfo);
- info.addMember(m_firstRadius, "firstRadius");
- info.addMember(m_secondRadius, "secondRadius");
- info.addMember(m_shape, "shape");
- info.addMember(m_sizingBehavior, "sizingBehavior");
- info.addMember(m_endHorizontalSize, "endHorizontalSize");
- info.addMember(m_endVerticalSize, "endVerticalSize");
-}
-
} // namespace WebCore
« no previous file with comments | « Source/core/css/CSSGradientValue.h ('k') | Source/core/css/CSSGroupingRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698