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

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

Issue 182063004: Rename adoptRefCountedWillBeRefCountedGarbageCollected to adoptRefWillBeRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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.h ('k') | Source/core/css/CSSTransformValue.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) 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 17 matching lines...) Expand all
28 28
29 #include "core/css/CSSValue.h" 29 #include "core/css/CSSValue.h"
30 #include "wtf/PassRefPtr.h" 30 #include "wtf/PassRefPtr.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class CSSCubicBezierTimingFunctionValue : public CSSValue { 34 class CSSCubicBezierTimingFunctionValue : public CSSValue {
35 public: 35 public:
36 static PassRefPtrWillBeRawPtr<CSSCubicBezierTimingFunctionValue> create(doub le x1, double y1, double x2, double y2) 36 static PassRefPtrWillBeRawPtr<CSSCubicBezierTimingFunctionValue> create(doub le x1, double y1, double x2, double y2)
37 { 37 {
38 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSCubicBezie rTimingFunctionValue(x1, y1, x2, y2)); 38 return adoptRefWillBeRefCountedGarbageCollected(new CSSCubicBezierTiming FunctionValue(x1, y1, x2, y2));
39 } 39 }
40 40
41 String customCSSText() const; 41 String customCSSText() const;
42 42
43 double x1() const { return m_x1; } 43 double x1() const { return m_x1; }
44 double y1() const { return m_y1; } 44 double y1() const { return m_y1; }
45 double x2() const { return m_x2; } 45 double x2() const { return m_x2; }
46 double y2() const { return m_y2; } 46 double y2() const { return m_y2; }
47 47
48 bool equals(const CSSCubicBezierTimingFunctionValue&) const; 48 bool equals(const CSSCubicBezierTimingFunctionValue&) const;
(...skipping 15 matching lines...) Expand all
64 double m_x2; 64 double m_x2;
65 double m_y2; 65 double m_y2;
66 }; 66 };
67 67
68 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCubicBezierTimingFunctionValue, isCubicBezierTimi ngFunctionValue()); 68 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCubicBezierTimingFunctionValue, isCubicBezierTimi ngFunctionValue());
69 69
70 class CSSStepsTimingFunctionValue : public CSSValue { 70 class CSSStepsTimingFunctionValue : public CSSValue {
71 public: 71 public:
72 static PassRefPtrWillBeRawPtr<CSSStepsTimingFunctionValue> create(int steps, bool stepAtStart) 72 static PassRefPtrWillBeRawPtr<CSSStepsTimingFunctionValue> create(int steps, bool stepAtStart)
73 { 73 {
74 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSStepsTimin gFunctionValue(steps, stepAtStart)); 74 return adoptRefWillBeRefCountedGarbageCollected(new CSSStepsTimingFuncti onValue(steps, stepAtStart));
75 } 75 }
76 76
77 int numberOfSteps() const { return m_steps; } 77 int numberOfSteps() const { return m_steps; }
78 bool stepAtStart() const { return m_stepAtStart; } 78 bool stepAtStart() const { return m_stepAtStart; }
79 79
80 String customCSSText() const; 80 String customCSSText() const;
81 81
82 bool equals(const CSSStepsTimingFunctionValue&) const; 82 bool equals(const CSSStepsTimingFunctionValue&) const;
83 83
84 void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(vis itor); } 84 void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(vis itor); }
85 85
86 private: 86 private:
87 CSSStepsTimingFunctionValue(int steps, bool stepAtStart) 87 CSSStepsTimingFunctionValue(int steps, bool stepAtStart)
88 : CSSValue(StepsTimingFunctionClass) 88 : CSSValue(StepsTimingFunctionClass)
89 , m_steps(steps) 89 , m_steps(steps)
90 , m_stepAtStart(stepAtStart) 90 , m_stepAtStart(stepAtStart)
91 { 91 {
92 } 92 }
93 93
94 int m_steps; 94 int m_steps;
95 bool m_stepAtStart; 95 bool m_stepAtStart;
96 }; 96 };
97 97
98 DEFINE_CSS_VALUE_TYPE_CASTS(CSSStepsTimingFunctionValue, isStepsTimingFunctionVa lue()); 98 DEFINE_CSS_VALUE_TYPE_CASTS(CSSStepsTimingFunctionValue, isStepsTimingFunctionVa lue());
99 99
100 } // namespace 100 } // namespace
101 101
102 #endif 102 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSSupportsRule.h ('k') | Source/core/css/CSSTransformValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698