Index: third_party/WebKit/Source/core/css/cssom/CSSNumericValue.h |
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSNumericValue.h b/third_party/WebKit/Source/core/css/cssom/CSSNumericValue.h |
index cdcb123e7912d2e500693eed8c4443f32f537c9e..0a38311db45710affe51b4524f35d756968abd28 100644 |
--- a/third_party/WebKit/Source/core/css/cssom/CSSNumericValue.h |
+++ b/third_party/WebKit/Source/core/css/cssom/CSSNumericValue.h |
@@ -6,12 +6,14 @@ |
#define CSSNumericValue_h |
#include "core/CoreExport.h" |
+#include "core/css/CSSPrimitiveValue.h" |
#include "core/css/cssom/CSSStyleValue.h" |
#include "platform/bindings/ScriptWrappable.h" |
#include "platform/wtf/text/WTFString.h" |
namespace blink { |
+class CSSUnitValue; |
class ExceptionState; |
class CORE_EXPORT CSSNumericValue : public CSSStyleValue { |
@@ -20,6 +22,10 @@ class CORE_EXPORT CSSNumericValue : public CSSStyleValue { |
public: |
static CSSNumericValue* parse(const String& css_text, ExceptionState&); |
+ static CSSNumericValue* FromCSSValue(const CSSValue&) { |
+ // TODO(meade): Implement. |
+ return nullptr; |
+ } |
virtual CSSNumericValue* add(const CSSNumericValue*, ExceptionState&) { |
// TODO(meade): Implement. |
@@ -43,6 +49,13 @@ class CORE_EXPORT CSSNumericValue : public CSSStyleValue { |
return nullptr; |
} |
+ // Internal methods. |
+ virtual CSSUnitValue* to(CSSPrimitiveValue::UnitType) { return nullptr; } |
+ bool ContainsPercent() const { |
+ // TODO(meade): Implement. |
+ return false; |
+ } |
+ |
protected: |
CSSNumericValue() {} |
}; |