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

Unified Diff: Source/core/svg/SVGLengthContext.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/SVGLength.cpp ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLengthContext.h
diff --git a/Source/core/svg/SVGLengthContext.h b/Source/core/svg/SVGLengthContext.h
index 93a406481b6c417e09aa3425938a537255036ff4..ff73b7615083d8b626c0e6c9af5811222c7317d4 100644
--- a/Source/core/svg/SVGLengthContext.h
+++ b/Source/core/svg/SVGLengthContext.h
@@ -20,6 +20,7 @@
#ifndef SVGLengthContext_h
#define SVGLengthContext_h
+#include "core/css/CSSPrimitiveValue.h"
#include "core/svg/SVGUnitTypes.h"
#include "platform/Length.h"
#include "platform/geometry/FloatRect.h"
@@ -68,8 +69,8 @@ public:
static FloatPoint resolvePoint(const SVGElement*, SVGUnitTypes::SVGUnitType, const SVGLength& x, const SVGLength& y);
static float resolveLength(const SVGElement*, SVGUnitTypes::SVGUnitType, const SVGLength&);
- float convertValueToUserUnits(float, SVGLengthMode, SVGLengthType fromUnit) const;
- float convertValueFromUserUnits(float, SVGLengthMode, SVGLengthType toUnit) const;
+ float convertValueToUserUnits(float, SVGLengthMode, CSSPrimitiveValue::UnitType fromUnit) const;
+ float convertValueFromUserUnits(float, SVGLengthMode, CSSPrimitiveValue::UnitType toUnit) const;
float valueForLength(const UnzoomedLength&, SVGLengthMode = SVGLengthMode::Other) const;
float valueForLength(const Length&, const ComputedStyle&, SVGLengthMode = SVGLengthMode::Other) const;
« no previous file with comments | « Source/core/svg/SVGLength.cpp ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698