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

Side by Side Diff: Source/core/css/CSSVariableValue.h

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/CSSValueList.cpp ('k') | Source/core/css/DocumentRuleSets.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 14 matching lines...) Expand all
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef CSSVariableValue_h 29 #ifndef CSSVariableValue_h
30 #define CSSVariableValue_h 30 #define CSSVariableValue_h
31 31
32 #include "CSSParserValues.h" 32 #include "CSSParserValues.h"
33 #include "CSSPropertyNames.h" 33 #include "CSSPropertyNames.h"
34 #include "CSSValue.h" 34 #include "CSSValue.h"
35 #include "WebCoreMemoryInstrumentation.h"
36 35
37 namespace WebCore { 36 namespace WebCore {
38 37
39 class CSSVariableValue : public CSSValue { 38 class CSSVariableValue : public CSSValue {
40 public: 39 public:
41 static PassRefPtr<CSSVariableValue> create(const AtomicString& name, const S tring& value) 40 static PassRefPtr<CSSVariableValue> create(const AtomicString& name, const S tring& value)
42 { 41 {
43 return adoptRef(new CSSVariableValue(name, value)); 42 return adoptRef(new CSSVariableValue(name, value));
44 } 43 }
45 44
46 const AtomicString& name() const { return m_name; } 45 const AtomicString& name() const { return m_name; }
47 const String& value() const { return m_value; } 46 const String& value() const { return m_value; }
48 47
49 bool equals(const CSSVariableValue& other) const { return m_name == other.m_ name && m_value == other.m_value; } 48 bool equals(const CSSVariableValue& other) const { return m_name == other.m_ name && m_value == other.m_value; }
50 49
51 void reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
52 {
53 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
54 info.addMember(m_name, "name");
55 info.addMember(m_value, "value");
56 }
57
58 private: 50 private:
59 CSSVariableValue(const AtomicString& name, const String& value) 51 CSSVariableValue(const AtomicString& name, const String& value)
60 : CSSValue(VariableClass) 52 : CSSValue(VariableClass)
61 , m_name(name) 53 , m_name(name)
62 , m_value(value) 54 , m_value(value)
63 { 55 {
64 } 56 }
65 57
66 const AtomicString m_name; 58 const AtomicString m_name;
67 const String m_value; 59 const String m_value;
68 }; 60 };
69 61
70 } 62 }
71 63
72 #endif /* CSSVariableValue_h */ 64 #endif /* CSSVariableValue_h */
OLDNEW
« no previous file with comments | « Source/core/css/CSSValueList.cpp ('k') | Source/core/css/DocumentRuleSets.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698