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

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

Issue 1421533006: Make SVGLength wrap a CSSPrimitiveValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added expectation Created 5 years, 1 month 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/SVGLengthContext.h
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthContext.h b/third_party/WebKit/Source/core/svg/SVGLengthContext.h
index 93a406481b6c417e09aa3425938a537255036ff4..ff73b7615083d8b626c0e6c9af5811222c7317d4 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthContext.h
+++ b/third_party/WebKit/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 | « third_party/WebKit/Source/core/svg/SVGLength.cpp ('k') | third_party/WebKit/Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698