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

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

Issue 2047923002: [WIP] Add support for CSSValue-> CSSLengthValue and CSSTranslation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@supported-types
Patch Set: Created 4 years, 6 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/CSSLengthValue.h b/third_party/WebKit/Source/core/css/cssom/CSSLengthValue.h
index 9d3de5913738103acb5dd35c2242811ae3751339..99140c56ffd338749108ee20f311c9d64db6089c 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSLengthValue.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSLengthValue.h
@@ -17,6 +17,7 @@ class CORE_EXPORT CSSLengthValue : public CSSStyleValue {
WTF_MAKE_NONCOPYABLE(CSSLengthValue);
DEFINE_WRAPPERTYPEINFO();
public:
+ static CSSLengthValue* fromCSSValue(const CSSValue& value);
static CSSPrimitiveValue::UnitType unitFromName(const String& name);
CSSLengthValue* add(const CSSLengthValue* other, ExceptionState&);
@@ -35,8 +36,8 @@ protected:
virtual CSSLengthValue* addInternal(const CSSLengthValue* other, ExceptionState&);
virtual CSSLengthValue* subtractInternal(const CSSLengthValue* other, ExceptionState&);
- virtual CSSLengthValue* multiplyInternal(double, ExceptionState&);
- virtual CSSLengthValue* divideInternal(double, ExceptionState&);
+ virtual CSSLengthValue* multiplyInternal(double);
+ virtual CSSLengthValue* divideInternal(double);
static bool isSupportedLengthUnit(CSSPrimitiveValue::UnitType unit)
{

Powered by Google App Engine
This is Rietveld 408576698