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

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

Issue 2097383002: Added support of calc() for SVGLength (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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
Index: third_party/WebKit/Source/core/svg/SVGLength.h
diff --git a/third_party/WebKit/Source/core/svg/SVGLength.h b/third_party/WebKit/Source/core/svg/SVGLength.h
index 089e8f8f1af11673dc44bbc561833d47806c4ba2..85a79b91adf2bb078f13d80a04da9d1df22554f1 100644
--- a/third_party/WebKit/Source/core/svg/SVGLength.h
+++ b/third_party/WebKit/Source/core/svg/SVGLength.h
@@ -56,6 +56,7 @@ public:
float value(const SVGLengthContext&) const;
void setValue(float, const SVGLengthContext&);
+ void setValueAsNumber(float);
float valueInSpecifiedUnits() const { return m_value->getFloatValue(); }
void setValueInSpecifiedUnits(float value)
@@ -82,6 +83,7 @@ public:
// Helper functions
inline bool isRelative() const { return CSSPrimitiveValue::isRelativeUnit(m_value->typeWithCalcResolved()); }
+ inline bool isCalculated() const { return m_value->isCalculated(); }
bool isZero() const
{

Powered by Google App Engine
This is Rietveld 408576698