This source file includes following definitions.
- customCSSText
- equals
- customCSSText
- equals
#include "config.h"
#include "core/css/CSSTimingFunctionValue.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
String CSSCubicBezierTimingFunctionValue::customCSSText() const
{
return "cubic-bezier("
+ String::number(m_x1) + ", "
+ String::number(m_y1) + ", "
+ String::number(m_x2) + ", "
+ String::number(m_y2) + ")";
}
bool CSSCubicBezierTimingFunctionValue::equals(const CSSCubicBezierTimingFunctionValue& other) const
{
return m_x1 == other.m_x1 && m_x2 == other.m_x2 && m_y1 == other.m_y1 && m_y2 == other.m_y2;
}
String CSSStepsTimingFunctionValue::customCSSText() const
{
String stepAtPositionString;
switch (m_stepAtPosition) {
case StepsTimingFunction::StepAtStart:
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_stepAtPosition == other.m_stepAtPosition;
}
}