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

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

Issue 960843003: Add a version of SVGLengthContext::valueForLength with explicit dimension (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase; Change argument order. Created 5 years, 10 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/layout/svg/SVGTextLayoutEngineBaseline.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 4fa7ed24375664900ae2a6222d59660870fe50bf..d17b89d7072a364079bf1e060395085d6ebd1c30 100644
--- a/Source/core/svg/SVGLengthContext.h
+++ b/Source/core/svg/SVGLengthContext.h
@@ -69,12 +69,11 @@ public:
float convertValueFromUserUnits(float, SVGLengthMode, SVGLengthType toUnit) 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 valueForLengthWithZoom(const Length&, float, SVGLengthMode) const;
-
float convertValueFromUserUnitsToEMS(float value) const;
float convertValueFromEMSToUserUnits(float value) const;
« no previous file with comments | « Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698