#include "third_party/blink/renderer/core/css/cssom/css_translate.h"
#include "third_party/blink/renderer/core/css/css_primitive_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_style_value.h"
#include "third_party/blink/renderer/core/geometry/dom_matrix.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
namespace blink {
namespace {
bool IsValidTranslateXY(const CSSNumericValue* value) { … }
bool IsValidTranslateZ(const CSSNumericValue* value) { … }
CSSTranslate* FromCSSTranslate(const CSSFunctionValue& value) { … }
CSSTranslate* FromCSSTranslateXYZ(const CSSFunctionValue& value) { … }
CSSTranslate* FromCSSTranslate3D(const CSSFunctionValue& value) { … }
}
CSSTranslate* CSSTranslate::Create(CSSNumericValue* x,
CSSNumericValue* y,
ExceptionState& exception_state) { … }
CSSTranslate* CSSTranslate::Create(CSSNumericValue* x,
CSSNumericValue* y,
CSSNumericValue* z,
ExceptionState& exception_state) { … }
CSSTranslate* CSSTranslate::Create(CSSNumericValue* x, CSSNumericValue* y) { … }
CSSTranslate* CSSTranslate::Create(CSSNumericValue* x,
CSSNumericValue* y,
CSSNumericValue* z) { … }
CSSTranslate* CSSTranslate::FromCSSValue(const CSSFunctionValue& value) { … }
void CSSTranslate::setX(CSSNumericValue* x, ExceptionState& exception_state) { … }
void CSSTranslate::setY(CSSNumericValue* y, ExceptionState& exception_state) { … }
void CSSTranslate::setZ(CSSNumericValue* z, ExceptionState& exception_state) { … }
DOMMatrix* CSSTranslate::toMatrix(ExceptionState& exception_state) const { … }
const CSSFunctionValue* CSSTranslate::ToCSSValue() const { … }
CSSTranslate::CSSTranslate(CSSNumericValue* x,
CSSNumericValue* y,
CSSNumericValue* z,
bool is2D)
: … { … }
}