Chromium Code Reviews| Index: Source/core/css/CSSTimingFunctionValue.cpp |
| diff --git a/Source/core/css/CSSTimingFunctionValue.cpp b/Source/core/css/CSSTimingFunctionValue.cpp |
| index 49420cbb26b6b54bb0b0e278abbe146e88b51f0a..742b85e39ae1a155d01d3994ffa9633576abaf24 100644 |
| --- a/Source/core/css/CSSTimingFunctionValue.cpp |
| +++ b/Source/core/css/CSSTimingFunctionValue.cpp |
| @@ -46,12 +46,36 @@ bool CSSCubicBezierTimingFunctionValue::equals(const CSSCubicBezierTimingFunctio |
| String CSSStepsTimingFunctionValue::customCSSText() const |
| { |
| - return "steps(" + String::number(m_steps) + ", " + (m_stepAtStart ? "start" : "end") + ')'; |
| + String stepAtPositionString; |
| + switch (m_stepAtPosition) { |
| + case StepsTimingFunction::StepAtStart: |
| + { |
|
eseidel
2014/02/05 01:41:18
Indent looks wrong.
rjwright
2014/02/17 07:16:53
Done.
|
| + stepAtPositionString = "start"; |
| + break; |
| + } |
| + case StepsTimingFunction::StepAtMiddle: |
| + { |
| + stepAtPositionString = "middle"; |
| + break; |
| + } |
| + case StepsTimingFunction::StepAtEnd: |
| + { |
| + stepAtPositionString = "end"; |
| + break; |
| + } |
| + default: |
| + { |
| + ASSERT_NOT_REACHED(); |
| + stepAtPositionString = "end"; |
| + break; |
| + } |
| + } |
| + return "steps(" + String::number(m_steps) + ", " + stepAtPositionString + ')'; |
| } |
| bool CSSStepsTimingFunctionValue::equals(const CSSStepsTimingFunctionValue& other) const |
| { |
| - return m_steps == other.m_steps && m_stepAtStart == other.m_stepAtStart; |
| + return m_steps == other.m_steps && m_stepAtPosition == other.m_stepAtPosition; |
| } |
| } // namespace WebCore |