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

Side by Side Diff: Source/core/css/CSSPrimitiveValue.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.h ('k') | Source/core/css/CSSProperty.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 21 matching lines...) Expand all
32 #include "Counter.h" 32 #include "Counter.h"
33 #include "ExceptionCode.h" 33 #include "ExceptionCode.h"
34 #include "Font.h" 34 #include "Font.h"
35 #include "LayoutUnit.h" 35 #include "LayoutUnit.h"
36 #include "Node.h" 36 #include "Node.h"
37 #include "Pair.h" 37 #include "Pair.h"
38 #include "RGBColor.h" 38 #include "RGBColor.h"
39 #include "Rect.h" 39 #include "Rect.h"
40 #include "RenderStyle.h" 40 #include "RenderStyle.h"
41 #include "StyleSheetContents.h" 41 #include "StyleSheetContents.h"
42 #include "WebCoreMemoryInstrumentation.h"
43 #include <wtf/ASCIICType.h> 42 #include <wtf/ASCIICType.h>
44 #include <wtf/DecimalNumber.h> 43 #include <wtf/DecimalNumber.h>
45 #include <wtf/StdLibExtras.h> 44 #include <wtf/StdLibExtras.h>
46 #include <wtf/text/StringBuffer.h> 45 #include <wtf/text/StringBuffer.h>
47 #include <wtf/text/StringBuilder.h> 46 #include <wtf/text/StringBuilder.h>
48 47
49 using namespace WTF; 48 using namespace WTF;
50 49
51 namespace WebCore { 50 namespace WebCore {
52 51
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 case CSS_PARSER_OPERATOR: 1260 case CSS_PARSER_OPERATOR:
1262 return m_value.ident == other.m_value.ident; 1261 return m_value.ident == other.m_value.ident;
1263 case CSS_CALC: 1262 case CSS_CALC:
1264 return m_value.calc && other.m_value.calc && m_value.calc->equals(*other .m_value.calc); 1263 return m_value.calc && other.m_value.calc && m_value.calc->equals(*other .m_value.calc);
1265 case CSS_SHAPE: 1264 case CSS_SHAPE:
1266 return m_value.shape && other.m_value.shape && m_value.shape->equals(*ot her.m_value.shape); 1265 return m_value.shape && other.m_value.shape && m_value.shape->equals(*ot her.m_value.shape);
1267 } 1266 }
1268 return false; 1267 return false;
1269 } 1268 }
1270 1269
1271 void CSSPrimitiveValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObje ctInfo) const
1272 {
1273 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
1274 switch (m_primitiveUnitType) {
1275 case CSS_ATTR:
1276 case CSS_COUNTER_NAME:
1277 case CSS_PARSER_IDENTIFIER:
1278 case CSS_PARSER_HEXCOLOR:
1279 case CSS_STRING:
1280 case CSS_URI:
1281 case CSS_VARIABLE_NAME:
1282 // FIXME: detect other cases when m_value is StringImpl*
1283 info.addMember(m_value.string, "value.string");
1284 break;
1285 case CSS_COUNTER:
1286 info.addMember(m_value.counter, "value.counter");
1287 break;
1288 case CSS_RECT:
1289 info.addMember(m_value.rect, "value.rect");
1290 break;
1291 case CSS_QUAD:
1292 info.addMember(m_value.quad, "value.quad");
1293 break;
1294 case CSS_PAIR:
1295 info.addMember(m_value.pair, "value.pair");
1296 break;
1297 case CSS_SHAPE:
1298 info.addMember(m_value.shape, "value.shape");
1299 break;
1300 case CSS_CALC:
1301 info.addMember(m_value.calc, "value.calc");
1302 break;
1303 default:
1304 break;
1305 }
1306 }
1307
1308 } // namespace WebCore 1270 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.h ('k') | Source/core/css/CSSProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698