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

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

Issue 1997503003: Typed CSSOM: Rename LengthValue to CSSLengthValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/SimpleLength.h
diff --git a/third_party/WebKit/Source/core/css/cssom/SimpleLength.h b/third_party/WebKit/Source/core/css/cssom/SimpleLength.h
index a9b221fbb09d1bc038e862e7915d68be1fa2e20a..645822c8dd3f943040dff26bb85aa6b1f43ddf17 100644
--- a/third_party/WebKit/Source/core/css/cssom/SimpleLength.h
+++ b/third_party/WebKit/Source/core/css/cssom/SimpleLength.h
@@ -6,13 +6,13 @@
#define SimpleLength_h
#include "bindings/core/v8/ExceptionState.h"
-#include "core/css/cssom/LengthValue.h"
+#include "core/css/cssom/CSSLengthValue.h"
namespace blink {
class CSSPrimitiveValue;
-class CORE_EXPORT SimpleLength final : public LengthValue {
+class CORE_EXPORT SimpleLength final : public CSSLengthValue {
WTF_MAKE_NONCOPYABLE(SimpleLength);
DEFINE_WRAPPERTYPEINFO();
public:
@@ -44,13 +44,13 @@ public:
CSSValue* toCSSValue() const override;
protected:
- virtual LengthValue* addInternal(const LengthValue* other, ExceptionState&);
- virtual LengthValue* subtractInternal(const LengthValue* other, ExceptionState&);
- virtual LengthValue* multiplyInternal(double, ExceptionState&);
- virtual LengthValue* divideInternal(double, ExceptionState&);
+ virtual CSSLengthValue* addInternal(const CSSLengthValue* other, ExceptionState&);
+ virtual CSSLengthValue* subtractInternal(const CSSLengthValue* other, ExceptionState&);
+ virtual CSSLengthValue* multiplyInternal(double, ExceptionState&);
+ virtual CSSLengthValue* divideInternal(double, ExceptionState&);
private:
- SimpleLength(double value, CSSPrimitiveValue::UnitType unit) : LengthValue(), m_unit(unit), m_value(value) {}
+ SimpleLength(double value, CSSPrimitiveValue::UnitType unit) : CSSLengthValue(), m_unit(unit), m_value(value) {}
CSSPrimitiveValue::UnitType m_unit;
double m_value;
@@ -58,10 +58,10 @@ private:
#define DEFINE_SIMPLE_LENGTH_TYPE_CASTS(argumentType) \
DEFINE_TYPE_CASTS(SimpleLength, argumentType, value, \
- value->type() == LengthValue::StyleValueType::SimpleLengthType, \
- value.type() == LengthValue::StyleValueType::SimpleLengthType)
+ value->type() == CSSLengthValue::StyleValueType::SimpleLengthType, \
+ value.type() == CSSLengthValue::StyleValueType::SimpleLengthType)
-DEFINE_SIMPLE_LENGTH_TYPE_CASTS(LengthValue);
+DEFINE_SIMPLE_LENGTH_TYPE_CASTS(CSSLengthValue);
DEFINE_SIMPLE_LENGTH_TYPE_CASTS(StyleValue);
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698