Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSMatrixTransformComponent.cpp

Issue 2038453002: Typed CSSOM: Rename Matrix to CSSMatrix and MatrixTransformComponent to CSSMatrixTransformComponent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/cssom/CSSMatrixTransformComponent.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp b/third_party/WebKit/Source/core/css/cssom/CSSMatrixTransformComponent.cpp
similarity index 59%
rename from third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp
rename to third_party/WebKit/Source/core/css/cssom/CSSMatrixTransformComponent.cpp
index 5519d9cc413ad3d75f9f9b8587fc8ab7dc66581a..0ed2f97de3eadb73c8848cfe36b4dc0308580f03 100644
--- a/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/CSSMatrixTransformComponent.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/MatrixTransformComponent.h"
+#include "core/css/cssom/CSSMatrixTransformComponent.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSValuePool.h"
@@ -11,7 +11,7 @@
namespace blink {
-CSSFunctionValue* MatrixTransformComponent::toCSSValue() const
+CSSFunctionValue* CSSMatrixTransformComponent::toCSSValue() const
{
CSSFunctionValue* result = CSSFunctionValue::create(m_is2D ? CSSValueMatrix : CSSValueMatrix3d);
@@ -31,46 +31,46 @@ CSSFunctionValue* MatrixTransformComponent::toCSSValue() const
return result;
}
-MatrixTransformComponent* MatrixTransformComponent::perspective(double length)
+CSSMatrixTransformComponent* CSSMatrixTransformComponent::perspective(double length)
{
OwnPtr<TransformationMatrix> matrix = TransformationMatrix::create();
if (length != 0)
matrix->setM34(-1 / length);
- return new MatrixTransformComponent(std::move(matrix), PerspectiveType);
+ return new CSSMatrixTransformComponent(std::move(matrix), PerspectiveType);
}
-MatrixTransformComponent* MatrixTransformComponent::rotate(double angle)
+CSSMatrixTransformComponent* CSSMatrixTransformComponent::rotate(double angle)
{
OwnPtr<TransformationMatrix> matrix = TransformationMatrix::create();
matrix->rotate(angle);
- return new MatrixTransformComponent(std::move(matrix), RotationType);
+ return new CSSMatrixTransformComponent(std::move(matrix), RotationType);
}
-MatrixTransformComponent* MatrixTransformComponent::rotate3d(double angle, double x, double y, double z)
+CSSMatrixTransformComponent* CSSMatrixTransformComponent::rotate3d(double angle, double x, double y, double z)
{
OwnPtr<TransformationMatrix> matrix = TransformationMatrix::create();
matrix->rotate3d(x, y, z, angle);
- return new MatrixTransformComponent(std::move(matrix), Rotation3DType);
+ return new CSSMatrixTransformComponent(std::move(matrix), Rotation3DType);
}
-MatrixTransformComponent* MatrixTransformComponent::scale(double x, double y)
+CSSMatrixTransformComponent* CSSMatrixTransformComponent::scale(double x, double y)
{
OwnPtr<TransformationMatrix> matrix = TransformationMatrix::create();
matrix->setM11(x);
matrix->setM22(y);
- return new MatrixTransformComponent(std::move(matrix), ScaleType);
+ return new CSSMatrixTransformComponent(std::move(matrix), ScaleType);
}
-MatrixTransformComponent* MatrixTransformComponent::scale3d(double x, double y, double z)
+CSSMatrixTransformComponent* CSSMatrixTransformComponent::scale3d(double x, double y, double z)
{
OwnPtr<TransformationMatrix> matrix = TransformationMatrix::create();
matrix->setM11(x);
matrix->setM22(y);
matrix->setM33(z);
- return new MatrixTransformComponent(std::move(matrix), Scale3DType);
+ return new CSSMatrixTransformComponent(std::move(matrix), Scale3DType);
}
-MatrixTransformComponent* MatrixTransformComponent::skew(double ax, double ay)
+CSSMatrixTransformComponent* CSSMatrixTransformComponent::skew(double ax, double ay)
{
double tanAx = std::tan(deg2rad(ax));
double tanAy = std::tan(deg2rad(ay));
@@ -78,24 +78,24 @@ MatrixTransformComponent* MatrixTransformComponent::skew(double ax, double ay)
OwnPtr<TransformationMatrix> matrix = TransformationMatrix::create();
matrix->setM12(tanAy);
matrix->setM21(tanAx);
- return new MatrixTransformComponent(std::move(matrix), SkewType);
+ return new CSSMatrixTransformComponent(std::move(matrix), SkewType);
}
-MatrixTransformComponent* MatrixTransformComponent::translate(double x, double y)
+CSSMatrixTransformComponent* CSSMatrixTransformComponent::translate(double x, double y)
{
OwnPtr<TransformationMatrix> matrix = TransformationMatrix::create();
matrix->setM41(x);
matrix->setM42(y);
- return new MatrixTransformComponent(std::move(matrix), TranslationType);
+ return new CSSMatrixTransformComponent(std::move(matrix), TranslationType);
}
-MatrixTransformComponent* MatrixTransformComponent::translate3d(double x, double y, double z)
+CSSMatrixTransformComponent* CSSMatrixTransformComponent::translate3d(double x, double y, double z)
{
OwnPtr<TransformationMatrix> matrix = TransformationMatrix::create();
matrix->setM41(x);
matrix->setM42(y);
matrix->setM43(z);
- return new MatrixTransformComponent(std::move(matrix), Translation3DType);
+ return new CSSMatrixTransformComponent(std::move(matrix), Translation3DType);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698