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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSNumericValue.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/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() {}
};
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSNumberValue.idl ('k') | third_party/WebKit/Source/core/css/cssom/CSSPerspective.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698