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

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

Issue 2867883003: [CSS Typed OM] Delete obsolete number and length classes from Typed OM (Closed)
Patch Set: rebase Created 3 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/CSSTranslation.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSTranslation.h b/third_party/WebKit/Source/core/css/cssom/CSSTranslation.h
index c8bba7298ea4fbe003d430f77561d0d7e9ba07cf..d4e2d2b47b95e01d42722dce8bfa925858544e22 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSTranslation.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSTranslation.h
@@ -5,11 +5,11 @@
#ifndef CSSTranslation_h
#define CSSTranslation_h
-#include "core/css/cssom/CSSLengthValue.h"
#include "core/css/cssom/CSSTransformComponent.h"
namespace blink {
+class CSSNumericValue;
class ExceptionState;
class CORE_EXPORT CSSTranslation final : public CSSTransformComponent {
@@ -17,23 +17,23 @@ class CORE_EXPORT CSSTranslation final : public CSSTransformComponent {
DEFINE_WRAPPERTYPEINFO();
public:
- static CSSTranslation* Create(CSSLengthValue* x,
- CSSLengthValue* y,
+ static CSSTranslation* Create(CSSNumericValue* x,
+ CSSNumericValue* y,
ExceptionState&) {
return new CSSTranslation(x, y, nullptr);
}
- static CSSTranslation* Create(CSSLengthValue* x,
- CSSLengthValue* y,
- CSSLengthValue* z,
+ static CSSTranslation* Create(CSSNumericValue* x,
+ CSSNumericValue* y,
+ CSSNumericValue* z,
ExceptionState&);
static CSSTranslation* FromCSSValue(const CSSFunctionValue& value) {
return nullptr;
}
- CSSLengthValue* x() const { return x_; }
- CSSLengthValue* y() const { return y_; }
- CSSLengthValue* z() const { return z_; }
+ CSSNumericValue* x() const { return x_; }
+ CSSNumericValue* y() const { return y_; }
+ CSSNumericValue* z() const { return z_; }
TransformComponentType GetType() const override {
return Is2D() ? kTranslationType : kTranslation3DType;
@@ -52,14 +52,14 @@ class CORE_EXPORT CSSTranslation final : public CSSTransformComponent {
}
private:
- CSSTranslation(CSSLengthValue* x, CSSLengthValue* y, CSSLengthValue* z)
+ CSSTranslation(CSSNumericValue* x, CSSNumericValue* y, CSSNumericValue* z)
: CSSTransformComponent(), x_(x), y_(y), z_(z) {}
bool Is2D() const { return !z_; }
- Member<CSSLengthValue> x_;
- Member<CSSLengthValue> y_;
- Member<CSSLengthValue> z_;
+ Member<CSSNumericValue> x_;
+ Member<CSSNumericValue> y_;
+ Member<CSSNumericValue> z_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698