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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSPositionValue.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/CSSPositionValue.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSPositionValue.h b/third_party/WebKit/Source/core/css/cssom/CSSPositionValue.h
index 867c0a93f1e41df7d3c0414ad3529c29543d786d..693dd53b12eb16c5d41689291835498450c1a5d0 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSPositionValue.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSPositionValue.h
@@ -11,21 +11,21 @@
namespace blink {
-class CSSLengthValue;
+class CSSNumericValue;
class CORE_EXPORT CSSPositionValue final : public CSSStyleValue {
WTF_MAKE_NONCOPYABLE(CSSPositionValue);
DEFINE_WRAPPERTYPEINFO();
public:
- static CSSPositionValue* Create(const CSSLengthValue* x,
- const CSSLengthValue* y) {
+ static CSSPositionValue* Create(const CSSNumericValue* x,
+ const CSSNumericValue* y) {
return new CSSPositionValue(x, y);
}
// Bindings require a non const return value.
- CSSLengthValue* x() const { return const_cast<CSSLengthValue*>(x_.Get()); }
- CSSLengthValue* y() const { return const_cast<CSSLengthValue*>(y_.Get()); }
+ CSSNumericValue* x() const { return const_cast<CSSNumericValue*>(x_.Get()); }
+ CSSNumericValue* y() const { return const_cast<CSSNumericValue*>(y_.Get()); }
StyleValueType GetType() const override { return kPositionType; }
@@ -38,11 +38,11 @@ class CORE_EXPORT CSSPositionValue final : public CSSStyleValue {
}
protected:
- CSSPositionValue(const CSSLengthValue* x, const CSSLengthValue* y)
+ CSSPositionValue(const CSSNumericValue* x, const CSSNumericValue* y)
: x_(x), y_(y) {}
- Member<const CSSLengthValue> x_;
- Member<const CSSLengthValue> y_;
+ Member<const CSSNumericValue> x_;
+ Member<const CSSNumericValue> y_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698