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

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

Issue 1162453002: [svg2] Make SVGLength wrap a CSSPrimitiveValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nit Created 5 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
« no previous file with comments | « Source/core/svg/SVGLengthList.cpp ('k') | Source/core/svg/SVGLengthTearOff.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLengthTearOff.h
diff --git a/Source/core/svg/SVGLengthTearOff.h b/Source/core/svg/SVGLengthTearOff.h
index 8714f7b55585c9583b62679225030f03d9f37db7..a94130dea3b5e0ed64fba138b2479ce4dcfa6e13 100644
--- a/Source/core/svg/SVGLengthTearOff.h
+++ b/Source/core/svg/SVGLengthTearOff.h
@@ -32,9 +32,11 @@
#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"
+
namespace blink {
class SVGLengthTearOff final : public SVGPropertyTearOff<SVGLength>, public ScriptWrappable {
@@ -71,7 +73,7 @@ public:
void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState&);
void convertToSpecifiedUnits(unsigned short unitType, ExceptionState&);
- bool hasExposedLengthUnit() { return target()->unitType() <= LengthTypePC; }
+ bool hasExposedLengthUnit() { return target()->primitiveType() <= CSSPrimitiveValue::CSS_PC; }
private:
SVGLengthTearOff(PassRefPtrWillBeRawPtr<SVGLength>, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName& attributeName = QualifiedName::null());
« no previous file with comments | « Source/core/svg/SVGLengthList.cpp ('k') | Source/core/svg/SVGLengthTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698