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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSScale.h

Issue 2933473003: Remove asMatrix as a JS-exposed method in CSSTransformComponents. (Closed)
Patch Set: update skew expectation for missing "s" Created 3 years, 6 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/CSSScale.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSScale.h b/third_party/WebKit/Source/core/css/cssom/CSSScale.h
index 5f155687d6cce04b4e155f2bb07bb563309694d6..bbe6e67a872642f4fd97a9ff089b5febb4bb4a65 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSScale.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSScale.h
@@ -5,8 +5,8 @@
#ifndef CSSScale_h
#define CSSScale_h
-#include "core/css/cssom/CSSMatrixComponent.h"
#include "core/css/cssom/CSSTransformComponent.h"
+#include "core/geometry/DOMMatrix.h"
namespace blink {
@@ -35,9 +35,9 @@ class CORE_EXPORT CSSScale final : public CSSTransformComponent {
return is2d_ ? kScaleType : kScale3DType;
}
- CSSMatrixComponent* asMatrix() const override {
- return is2d_ ? CSSMatrixComponent::Scale(x_, y_)
- : CSSMatrixComponent::Scale3d(x_, y_, z_);
+ DOMMatrix* AsMatrix() const override {
+ DOMMatrix* result = DOMMatrix::Create();
+ return result->scaleSelf(x_, y_, z_);
}
CSSFunctionValue* ToCSSValue() const override;
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSRotation.h ('k') | third_party/WebKit/Source/core/css/cssom/CSSSkew.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698