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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.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/CSSSimpleLength.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.h b/third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.h
deleted file mode 100644
index 0b5b1317679513ea827817489823589863a55c71..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CSSSimpleLength_h
-#define CSSSimpleLength_h
-
-#include "core/css/cssom/CSSLengthValue.h"
-
-namespace blink {
-
-class CSSPrimitiveValue;
-class ExceptionState;
-
-class CORE_EXPORT CSSSimpleLength final : public CSSLengthValue {
- WTF_MAKE_NONCOPYABLE(CSSSimpleLength);
- DEFINE_WRAPPERTYPEINFO();
-
- public:
- static CSSSimpleLength* Create(double, const String& type, ExceptionState&);
- static CSSSimpleLength* Create(double value,
- CSSPrimitiveValue::UnitType type) {
- return new CSSSimpleLength(value, type);
- }
- static CSSSimpleLength* FromCSSValue(const CSSPrimitiveValue&);
-
- bool ContainsPercent() const override;
-
- double value() const { return value_; }
- String unit() const;
- CSSPrimitiveValue::UnitType LengthUnit() const { return unit_; }
-
- StyleValueType GetType() const override {
- return StyleValueType::kSimpleLengthType;
- }
-
- CSSValue* ToCSSValue() const override;
-
- protected:
- virtual CSSLengthValue* AddInternal(const CSSLengthValue* other);
- virtual CSSLengthValue* SubtractInternal(const CSSLengthValue* other);
- virtual CSSLengthValue* MultiplyInternal(double);
- virtual CSSLengthValue* DivideInternal(double);
-
- private:
- CSSSimpleLength(double value, CSSPrimitiveValue::UnitType unit)
- : CSSLengthValue(), unit_(unit), value_(value) {}
-
- CSSPrimitiveValue::UnitType unit_;
- double value_;
-};
-
-#define DEFINE_SIMPLE_LENGTH_TYPE_CASTS(argumentType) \
- DEFINE_TYPE_CASTS( \
- CSSSimpleLength, argumentType, value, \
- value->GetType() == CSSLengthValue::StyleValueType::kSimpleLengthType, \
- value.GetType() == CSSLengthValue::StyleValueType::kSimpleLengthType)
-
-DEFINE_SIMPLE_LENGTH_TYPE_CASTS(CSSLengthValue);
-DEFINE_SIMPLE_LENGTH_TYPE_CASTS(CSSStyleValue);
-
-} // namespace blink
-
-#endif
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSRotation.idl ('k') | third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698