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

Side by Side Diff: Source/core/css/CSSTimingFunctionValue.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/CSSSupportsRule.cpp ('k') | Source/core/css/CSSTimingFunctionValue.cpp » ('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) 2007, 2008, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2012 Apple 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 24 matching lines...) Expand all
35 public: 35 public:
36 static PassRefPtr<CSSLinearTimingFunctionValue> create() 36 static PassRefPtr<CSSLinearTimingFunctionValue> create()
37 { 37 {
38 return adoptRef(new CSSLinearTimingFunctionValue); 38 return adoptRef(new CSSLinearTimingFunctionValue);
39 } 39 }
40 40
41 String customCssText() const; 41 String customCssText() const;
42 42
43 bool equals(const CSSLinearTimingFunctionValue&) const { return true; } 43 bool equals(const CSSLinearTimingFunctionValue&) const { return true; }
44 44
45 void reportDescendantMemoryUsage(MemoryObjectInfo*) const;
46
47 private: 45 private:
48 CSSLinearTimingFunctionValue() 46 CSSLinearTimingFunctionValue()
49 : CSSValue(LinearTimingFunctionClass) 47 : CSSValue(LinearTimingFunctionClass)
50 { 48 {
51 } 49 }
52 }; 50 };
53 51
54 class CSSCubicBezierTimingFunctionValue : public CSSValue { 52 class CSSCubicBezierTimingFunctionValue : public CSSValue {
55 public: 53 public:
56 static PassRefPtr<CSSCubicBezierTimingFunctionValue> create(double x1, doubl e y1, double x2, double y2) 54 static PassRefPtr<CSSCubicBezierTimingFunctionValue> create(double x1, doubl e y1, double x2, double y2)
57 { 55 {
58 return adoptRef(new CSSCubicBezierTimingFunctionValue(x1, y1, x2, y2)); 56 return adoptRef(new CSSCubicBezierTimingFunctionValue(x1, y1, x2, y2));
59 } 57 }
60 58
61 String customCssText() const; 59 String customCssText() const;
62 60
63 double x1() const { return m_x1; } 61 double x1() const { return m_x1; }
64 double y1() const { return m_y1; } 62 double y1() const { return m_y1; }
65 double x2() const { return m_x2; } 63 double x2() const { return m_x2; }
66 double y2() const { return m_y2; } 64 double y2() const { return m_y2; }
67 65
68 bool equals(const CSSCubicBezierTimingFunctionValue&) const; 66 bool equals(const CSSCubicBezierTimingFunctionValue&) const;
69 67
70 void reportDescendantMemoryUsage(MemoryObjectInfo*) const;
71
72 private: 68 private:
73 CSSCubicBezierTimingFunctionValue(double x1, double y1, double x2, double y2 ) 69 CSSCubicBezierTimingFunctionValue(double x1, double y1, double x2, double y2 )
74 : CSSValue(CubicBezierTimingFunctionClass) 70 : CSSValue(CubicBezierTimingFunctionClass)
75 , m_x1(x1) 71 , m_x1(x1)
76 , m_y1(y1) 72 , m_y1(y1)
77 , m_x2(x2) 73 , m_x2(x2)
78 , m_y2(y2) 74 , m_y2(y2)
79 { 75 {
80 } 76 }
81 77
(...skipping 10 matching lines...) Expand all
92 return adoptRef(new CSSStepsTimingFunctionValue(steps, stepAtStart)); 88 return adoptRef(new CSSStepsTimingFunctionValue(steps, stepAtStart));
93 } 89 }
94 90
95 int numberOfSteps() const { return m_steps; } 91 int numberOfSteps() const { return m_steps; }
96 bool stepAtStart() const { return m_stepAtStart; } 92 bool stepAtStart() const { return m_stepAtStart; }
97 93
98 String customCssText() const; 94 String customCssText() const;
99 95
100 bool equals(const CSSStepsTimingFunctionValue&) const; 96 bool equals(const CSSStepsTimingFunctionValue&) const;
101 97
102 void reportDescendantMemoryUsage(MemoryObjectInfo*) const;
103
104 private: 98 private:
105 CSSStepsTimingFunctionValue(int steps, bool stepAtStart) 99 CSSStepsTimingFunctionValue(int steps, bool stepAtStart)
106 : CSSValue(StepsTimingFunctionClass) 100 : CSSValue(StepsTimingFunctionClass)
107 , m_steps(steps) 101 , m_steps(steps)
108 , m_stepAtStart(stepAtStart) 102 , m_stepAtStart(stepAtStart)
109 { 103 {
110 } 104 }
111 105
112 int m_steps; 106 int m_steps;
113 bool m_stepAtStart; 107 bool m_stepAtStart;
114 }; 108 };
115 109
116 } // namespace 110 } // namespace
117 111
118 #endif 112 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSSupportsRule.cpp ('k') | Source/core/css/CSSTimingFunctionValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698