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

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

Issue 26145005: DEFINE_CSS_VALUE_TYPE_CASTS starts to use DEFINE_TYPE_CASTS (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 , m_y2(y2) 56 , m_y2(y2)
57 { 57 {
58 } 58 }
59 59
60 double m_x1; 60 double m_x1;
61 double m_y1; 61 double m_y1;
62 double m_x2; 62 double m_x2;
63 double m_y2; 63 double m_y2;
64 }; 64 };
65 65
66 DEFINE_CSS_VALUE_TYPE_CASTS(CubicBezierTimingFunctionValue); 66 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCubicBezierTimingFunctionValue, isCubicBezierTimi ngFunctionValue());
67 67
68 class CSSStepsTimingFunctionValue : public CSSValue { 68 class CSSStepsTimingFunctionValue : public CSSValue {
69 public: 69 public:
70 static PassRefPtr<CSSStepsTimingFunctionValue> create(int steps, bool stepAt Start) 70 static PassRefPtr<CSSStepsTimingFunctionValue> create(int steps, bool stepAt Start)
71 { 71 {
72 return adoptRef(new CSSStepsTimingFunctionValue(steps, stepAtStart)); 72 return adoptRef(new CSSStepsTimingFunctionValue(steps, stepAtStart));
73 } 73 }
74 74
75 int numberOfSteps() const { return m_steps; } 75 int numberOfSteps() const { return m_steps; }
76 bool stepAtStart() const { return m_stepAtStart; } 76 bool stepAtStart() const { return m_stepAtStart; }
77 77
78 String customCssText() const; 78 String customCssText() const;
79 79
80 bool equals(const CSSStepsTimingFunctionValue&) const; 80 bool equals(const CSSStepsTimingFunctionValue&) const;
81 81
82 private: 82 private:
83 CSSStepsTimingFunctionValue(int steps, bool stepAtStart) 83 CSSStepsTimingFunctionValue(int steps, bool stepAtStart)
84 : CSSValue(StepsTimingFunctionClass) 84 : CSSValue(StepsTimingFunctionClass)
85 , m_steps(steps) 85 , m_steps(steps)
86 , m_stepAtStart(stepAtStart) 86 , m_stepAtStart(stepAtStart)
87 { 87 {
88 } 88 }
89 89
90 int m_steps; 90 int m_steps;
91 bool m_stepAtStart; 91 bool m_stepAtStart;
92 }; 92 };
93 93
94 DEFINE_CSS_VALUE_TYPE_CASTS(StepsTimingFunctionValue); 94 DEFINE_CSS_VALUE_TYPE_CASTS(CSSStepsTimingFunctionValue, isStepsTimingFunctionVa lue());
95 95
96 } // namespace 96 } // namespace
97 97
98 #endif 98 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698