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

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

Issue 1949343002: [Obsolete] Typed CSSOM: Prefix LengthValue, CalcLength and SimpleLength with "CSS" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename layout test files 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/CSSLengthValue.h
diff --git a/third_party/WebKit/Source/core/css/cssom/LengthValue.h b/third_party/WebKit/Source/core/css/cssom/CSSLengthValue.h
similarity index 50%
rename from third_party/WebKit/Source/core/css/cssom/LengthValue.h
rename to third_party/WebKit/Source/core/css/cssom/CSSLengthValue.h
index 9232d6ac1d7e5445f955df5a4d829391b35fbe0d..acde2349a4ce6f7024d044604a289dd223889fc6 100644
--- a/third_party/WebKit/Source/core/css/cssom/LengthValue.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSLengthValue.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef LengthValue_h
-#define LengthValue_h
+#ifndef CSSLengthValue_h
+#define CSSLengthValue_h
#include "core/css/cssom/StyleValue.h"
@@ -12,30 +12,30 @@ namespace blink {
class CalcDictionary;
class ExceptionState;
-class CORE_EXPORT LengthValue : public StyleValue {
- WTF_MAKE_NONCOPYABLE(LengthValue);
+class CORE_EXPORT CSSLengthValue : public StyleValue {
+ WTF_MAKE_NONCOPYABLE(CSSLengthValue);
DEFINE_WRAPPERTYPEINFO();
public:
static CSSPrimitiveValue::UnitType unitFromName(const String& name);
- LengthValue* add(const LengthValue* other, ExceptionState&);
- LengthValue* subtract(const LengthValue* other, ExceptionState&);
- LengthValue* multiply(double, ExceptionState&);
- LengthValue* divide(double, ExceptionState&);
+ CSSLengthValue* add(const CSSLengthValue* other, ExceptionState&);
+ CSSLengthValue* subtract(const CSSLengthValue* other, ExceptionState&);
+ CSSLengthValue* multiply(double, ExceptionState&);
+ CSSLengthValue* divide(double, ExceptionState&);
virtual bool containsPercent() const = 0;
- static LengthValue* parse(const String& cssString, ExceptionState&);
- static LengthValue* fromValue(double value, const String& typeStr, ExceptionState&);
- static LengthValue* fromDictionary(const CalcDictionary&, ExceptionState&);
+ static CSSLengthValue* parse(const String& cssString, ExceptionState&);
+ static CSSLengthValue* fromValue(double value, const String& typeStr, ExceptionState&);
+ static CSSLengthValue* fromDictionary(const CalcDictionary&, ExceptionState&);
protected:
- LengthValue() {}
+ CSSLengthValue() {}
- 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&);
static bool isSupportedLengthUnit(CSSPrimitiveValue::UnitType unit)
{
@@ -47,7 +47,7 @@ protected:
static const int kNumSupportedUnits = 15;
};
-DEFINE_TYPE_CASTS(LengthValue, StyleValue, value,
+DEFINE_TYPE_CASTS(CSSLengthValue, StyleValue, value,
(value->type() == StyleValue::SimpleLengthType
|| value->type() == StyleValue::CalcLengthType),
(value.type() == StyleValue::SimpleLengthType

Powered by Google App Engine
This is Rietveld 408576698