OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 String customCSSText() const; | 42 String customCSSText() const; |
43 | 43 |
44 double x1() const { return m_x1; } | 44 double x1() const { return m_x1; } |
45 double y1() const { return m_y1; } | 45 double y1() const { return m_y1; } |
46 double x2() const { return m_x2; } | 46 double x2() const { return m_x2; } |
47 double y2() const { return m_y2; } | 47 double y2() const { return m_y2; } |
48 | 48 |
49 bool equals(const CSSCubicBezierTimingFunctionValue&) const; | 49 bool equals(const CSSCubicBezierTimingFunctionValue&) const; |
50 | 50 |
51 void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(vis
itor); } | 51 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { CSSValue::traceAfterDispatch(visitor)
; } |
52 | 52 |
53 private: | 53 private: |
54 CSSCubicBezierTimingFunctionValue(double x1, double y1, double x2, double y2
) | 54 CSSCubicBezierTimingFunctionValue(double x1, double y1, double x2, double y2
) |
55 : CSSValue(CubicBezierTimingFunctionClass) | 55 : CSSValue(CubicBezierTimingFunctionClass) |
56 , m_x1(x1) | 56 , m_x1(x1) |
57 , m_y1(y1) | 57 , m_y1(y1) |
58 , m_x2(x2) | 58 , m_x2(x2) |
59 , m_y2(y2) | 59 , m_y2(y2) |
60 { | 60 { |
61 } | 61 } |
(...skipping 13 matching lines...) Expand all Loading... |
75 return adoptRefWillBeNoop(new CSSStepsTimingFunctionValue(steps, stepAtP
osition)); | 75 return adoptRefWillBeNoop(new CSSStepsTimingFunctionValue(steps, stepAtP
osition)); |
76 } | 76 } |
77 | 77 |
78 int numberOfSteps() const { return m_steps; } | 78 int numberOfSteps() const { return m_steps; } |
79 StepsTimingFunction::StepAtPosition stepAtPosition() const { return m_stepAt
Position; } | 79 StepsTimingFunction::StepAtPosition stepAtPosition() const { return m_stepAt
Position; } |
80 | 80 |
81 String customCSSText() const; | 81 String customCSSText() const; |
82 | 82 |
83 bool equals(const CSSStepsTimingFunctionValue&) const; | 83 bool equals(const CSSStepsTimingFunctionValue&) const; |
84 | 84 |
85 void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(vis
itor); } | 85 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { CSSValue::traceAfterDispatch(visitor)
; } |
86 | 86 |
87 private: | 87 private: |
88 CSSStepsTimingFunctionValue(int steps, StepsTimingFunction::StepAtPosition s
tepAtPosition) | 88 CSSStepsTimingFunctionValue(int steps, StepsTimingFunction::StepAtPosition s
tepAtPosition) |
89 : CSSValue(StepsTimingFunctionClass) | 89 : CSSValue(StepsTimingFunctionClass) |
90 , m_steps(steps) | 90 , m_steps(steps) |
91 , m_stepAtPosition(stepAtPosition) | 91 , m_stepAtPosition(stepAtPosition) |
92 { | 92 { |
93 } | 93 } |
94 | 94 |
95 int m_steps; | 95 int m_steps; |
96 StepsTimingFunction::StepAtPosition m_stepAtPosition; | 96 StepsTimingFunction::StepAtPosition m_stepAtPosition; |
97 }; | 97 }; |
98 | 98 |
99 DEFINE_CSS_VALUE_TYPE_CASTS(CSSStepsTimingFunctionValue, isStepsTimingFunctionVa
lue()); | 99 DEFINE_CSS_VALUE_TYPE_CASTS(CSSStepsTimingFunctionValue, isStepsTimingFunctionVa
lue()); |
100 | 100 |
101 } // namespace | 101 } // namespace |
102 | 102 |
103 #endif | 103 #endif |
OLD | NEW |