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

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

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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/svg/SVGLength.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 0e184e53da4e3d46a8a88e8295b38b1be8ce0cde..7166fd18c49f10aef8bc2156c25bed55464a922b 100644
--- a/Source/core/svg/SVGLengthContext.h
+++ b/Source/core/svg/SVGLengthContext.h
@@ -21,6 +21,7 @@
#define SVGLengthContext_h
#include "core/svg/SVGUnitTypes.h"
+#include "platform/Length.h"
#include "platform/geometry/FloatRect.h"
namespace blink {
@@ -66,6 +67,8 @@ public:
float convertValueToUserUnits(float, SVGLengthMode, SVGLengthType fromUnit) const;
float convertValueFromUserUnits(float, SVGLengthMode, SVGLengthType toUnit) const;
+ float valueForLength(const Length&, SVGLengthMode = LengthModeOther);
+
bool determineViewport(FloatSize&) const;
private:
« no previous file with comments | « Source/core/svg/SVGLength.h ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698