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

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

Issue 983103003: Use Length for the stroke-width property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: lengthSetterForProperty Created 5 years, 9 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/RadialGradientAttributes.h ('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 d17b89d7072a364079bf1e060395085d6ebd1c30..5642edb2db1cab31f98bd28a3cd3fb74db5b08a4 100644
--- a/Source/core/svg/SVGLengthContext.h
+++ b/Source/core/svg/SVGLengthContext.h
@@ -29,6 +29,7 @@ namespace blink {
class LayoutStyle;
class SVGElement;
class SVGLength;
+class UnzoomedLength;
enum SVGLengthType {
LengthTypeUnknown = 0,
@@ -68,12 +69,16 @@ public:
float convertValueToUserUnits(float, SVGLengthMode, SVGLengthType fromUnit) const;
float convertValueFromUserUnits(float, SVGLengthMode, SVGLengthType toUnit) const;
+ float valueForLength(const UnzoomedLength&, SVGLengthMode = SVGLengthMode::Other) const;
float valueForLength(const Length&, const LayoutStyle&, SVGLengthMode = SVGLengthMode::Other) const;
static float valueForLength(const Length&, const LayoutStyle&, float dimension);
bool determineViewport(FloatSize&) const;
private:
+ float valueForLength(const Length&, float zoom, SVGLengthMode) const;
+ static float valueForLength(const Length&, float zoom, float dimension);
+
float convertValueFromUserUnitsToEMS(float value) const;
float convertValueFromEMSToUserUnits(float value) const;
« no previous file with comments | « Source/core/svg/RadialGradientAttributes.h ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698