Chromium Code Reviews| 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 8714f7b55585c9583b62679225030f03d9f37db7..81e5377abce76f806ebdd0aa8b8c2bc6867c4226 100644 |
| --- a/third_party/WebKit/Source/core/svg/SVGLengthTearOff.h |
| +++ b/third_party/WebKit/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" |
| + |
|
fs
2015/10/23 20:28:59
Nit: Drop
|
| 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()->typeWithCalcResolved() <= CSSPrimitiveValue::UnitType::Picas; } |
| private: |
| SVGLengthTearOff(PassRefPtrWillBeRawPtr<SVGLength>, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName& attributeName = QualifiedName::null()); |