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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLengthTearOff.h

Issue 2354283002: Drop the SVGLengthType enumeration (Closed)
Patch Set: Drop the enum entirely Created 4 years, 3 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/svg/SVGLengthTearOff.h
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthTearOff.h b/third_party/WebKit/Source/core/svg/SVGLengthTearOff.h
index 32677d5feb6e661725401a7e0e30d5c292a08278..068649b3b924851f003d59e42aca0ff918de4078 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthTearOff.h
+++ b/third_party/WebKit/Source/core/svg/SVGLengthTearOff.h
@@ -32,7 +32,6 @@
#define SVGLengthTearOff_h
#include "bindings/core/v8/ScriptWrappable.h"
-#include "core/css/CSSPrimitiveValue.h"
#include "core/svg/SVGLength.h"
#include "core/svg/properties/SVGPropertyTearOff.h"
@@ -43,17 +42,17 @@ class SVGLengthTearOff final : public SVGPropertyTearOff<SVGLength>, public Scri
public:
// Forward declare these enums in the w3c naming scheme, for IDL generation
enum {
- kSvgLengthtypeUnknown = LengthTypeUnknown,
- kSvgLengthtypeNumber = LengthTypeNumber,
- kSvgLengthtypePercentage = LengthTypePercentage,
- kSvgLengthtypeEms = LengthTypeEMS,
- kSvgLengthtypeExs = LengthTypeEXS,
- kSvgLengthtypePx = LengthTypePX,
- kSvgLengthtypeCm = LengthTypeCM,
- kSvgLengthtypeMm = LengthTypeMM,
- kSvgLengthtypeIn = LengthTypeIN,
- kSvgLengthtypePt = LengthTypePT,
- kSvgLengthtypePc = LengthTypePC
+ kSvgLengthtypeUnknown = 0,
+ kSvgLengthtypeNumber = 1,
+ kSvgLengthtypePercentage = 2,
+ kSvgLengthtypeEms = 3,
+ kSvgLengthtypeExs = 4,
+ kSvgLengthtypePx = 5,
+ kSvgLengthtypeCm = 6,
+ kSvgLengthtypeMm = 7,
+ kSvgLengthtypeIn = 8,
+ kSvgLengthtypePt = 9,
+ kSvgLengthtypePc = 10
};
static SVGLengthTearOff* create(SVGLength* target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = QualifiedName::null())
@@ -61,7 +60,7 @@ public:
return new SVGLengthTearOff(target, contextElement, propertyIsAnimVal, attributeName);
}
- SVGLengthType unitType();
+ unsigned short unitType();
SVGLengthMode unitMode();
float value(ExceptionState&);
void setValue(float value, ExceptionState&);
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthContext.h ('k') | third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698