| Index: third_party/WebKit/Source/core/css/cssom/CSSTranslation.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/cssom/TranslationTransformComponent.cpp b/third_party/WebKit/Source/core/css/cssom/CSSTranslation.cpp
|
| similarity index 59%
|
| rename from third_party/WebKit/Source/core/css/cssom/TranslationTransformComponent.cpp
|
| rename to third_party/WebKit/Source/core/css/cssom/CSSTranslation.cpp
|
| index d7c2617e7e77aff6c7dbe007790b67dc7ff1b8d9..417242d18ecb1be30e7c7291d7271f77ffcf6413 100644
|
| --- a/third_party/WebKit/Source/core/css/cssom/TranslationTransformComponent.cpp
|
| +++ b/third_party/WebKit/Source/core/css/cssom/CSSTranslation.cpp
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "core/css/cssom/TranslationTransformComponent.h"
|
| +#include "core/css/cssom/CSSTranslation.h"
|
|
|
| #include "bindings/core/v8/ExceptionState.h"
|
| #include "core/css/CSSPrimitiveValue.h"
|
| @@ -10,16 +10,16 @@
|
|
|
| namespace blink {
|
|
|
| -TranslationTransformComponent* TranslationTransformComponent::create(LengthValue* x, LengthValue* y, LengthValue* z, ExceptionState& exceptionState)
|
| +CSSTranslation* CSSTranslation::create(LengthValue* x, LengthValue* y, LengthValue* z, ExceptionState& exceptionState)
|
| {
|
| if (z->containsPercent()) {
|
| - exceptionState.throwTypeError("TranslationTransformComponent does not support z LengthValue with percent units");
|
| + exceptionState.throwTypeError("CSSTranslation does not support z LengthValue with percent units");
|
| return nullptr;
|
| }
|
| - return new TranslationTransformComponent(x, y, z);
|
| + return new CSSTranslation(x, y, z);
|
| }
|
|
|
| -CSSFunctionValue* TranslationTransformComponent::toCSSValue() const
|
| +CSSFunctionValue* CSSTranslation::toCSSValue() const
|
| {
|
| CSSFunctionValue* result = CSSFunctionValue::create(is2D() ? CSSValueTranslate : CSSValueTranslate3d);
|
| result->append(m_x->toCSSValue());
|
|
|