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

Side by Side Diff: Source/core/css/FontFeatureValue.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/FontFeatureValue.h ('k') | Source/core/css/FontValue.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 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 10 matching lines...) Expand all
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "FontFeatureValue.h" 27 #include "FontFeatureValue.h"
28 28
29 #include "CSSParser.h" 29 #include "CSSParser.h"
30 #include "CSSValueKeywords.h" 30 #include "CSSValueKeywords.h"
31 #include "WebCoreMemoryInstrumentation.h"
32 #include <wtf/text/StringBuilder.h> 31 #include <wtf/text/StringBuilder.h>
33 32
34 namespace WebCore { 33 namespace WebCore {
35 34
36 FontFeatureValue::FontFeatureValue(const String& tag, int value) 35 FontFeatureValue::FontFeatureValue(const String& tag, int value)
37 : CSSValue(FontFeatureClass) 36 : CSSValue(FontFeatureClass)
38 , m_tag(tag) 37 , m_tag(tag)
39 , m_value(value) 38 , m_value(value)
40 { 39 {
41 } 40 }
42 41
43 String FontFeatureValue::customCssText() const 42 String FontFeatureValue::customCssText() const
44 { 43 {
45 StringBuilder builder; 44 StringBuilder builder;
46 builder.append('\''); 45 builder.append('\'');
47 builder.append(m_tag); 46 builder.append(m_tag);
48 builder.appendLiteral("' "); 47 builder.appendLiteral("' ");
49 builder.appendNumber(m_value); 48 builder.appendNumber(m_value);
50 return builder.toString(); 49 return builder.toString();
51 } 50 }
52 51
53 bool FontFeatureValue::equals(const FontFeatureValue& other) const 52 bool FontFeatureValue::equals(const FontFeatureValue& other) const
54 { 53 {
55 return m_tag == other.m_tag && m_value == other.m_value; 54 return m_tag == other.m_tag && m_value == other.m_value;
56 } 55 }
57 56
58 void FontFeatureValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjec tInfo) const
59 {
60 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
61 info.addMember(m_tag, "tag");
62 } 57 }
63
64 }
OLDNEW
« no previous file with comments | « Source/core/css/FontFeatureValue.h ('k') | Source/core/css/FontValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698