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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSPerspective.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/CSSPerspective.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSPerspective.h b/third_party/WebKit/Source/core/css/cssom/CSSPerspective.h
index f684cfc55d87a91cbd0586d26112d439321d2ccc..eb49ef59c82cd241d9aef0a2d0e2c5a1f9da0f5b 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSPerspective.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSPerspective.h
@@ -6,7 +6,7 @@
#define CSSPerspective_h
#include "core/CoreExport.h"
-#include "core/css/cssom/CSSLengthValue.h"
+#include "core/css/cssom/CSSNumericValue.h"
#include "core/css/cssom/CSSTransformComponent.h"
namespace blink {
@@ -18,12 +18,12 @@ class CORE_EXPORT CSSPerspective : public CSSTransformComponent {
DEFINE_WRAPPERTYPEINFO();
public:
- static CSSPerspective* Create(const CSSLengthValue*, ExceptionState&);
+ static CSSPerspective* Create(const CSSNumericValue*, ExceptionState&);
static CSSPerspective* FromCSSValue(const CSSFunctionValue&);
// Bindings require a non const return value.
- CSSLengthValue* length() const {
- return const_cast<CSSLengthValue*>(length_.Get());
+ CSSNumericValue* length() const {
+ return const_cast<CSSNumericValue*>(length_.Get());
}
TransformComponentType GetType() const override { return kPerspectiveType; }
@@ -39,9 +39,9 @@ class CORE_EXPORT CSSPerspective : public CSSTransformComponent {
}
private:
- CSSPerspective(const CSSLengthValue* length) : length_(length) {}
+ CSSPerspective(const CSSNumericValue* length) : length_(length) {}
- Member<const CSSLengthValue> length_;
+ Member<const CSSNumericValue> length_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698