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

Unified Diff: Source/core/svg/SVGLength.cpp

Issue 897313004: Fold up the SVGLengthContext::convertValueFrom* helpers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | Source/core/svg/SVGLengthContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLength.cpp
diff --git a/Source/core/svg/SVGLength.cpp b/Source/core/svg/SVGLength.cpp
index 1f599c3b242593dce7b6025ab57fe17b85e64fb2..97d0f53c15f6f2aac800a94d18b8e81e8f86fec0 100644
--- a/Source/core/svg/SVGLength.cpp
+++ b/Source/core/svg/SVGLength.cpp
@@ -166,10 +166,6 @@ float SVGLength::value(const SVGLengthContext& context) const
void SVGLength::setValue(float value, const SVGLengthContext& context)
{
- // LengthTypePercentage is represented with 100% = 100.0. Good for accuracy but could eventually be changed.
- if (m_unitType == LengthTypePercentage)
- value = value / 100;
-
m_valueInSpecifiedUnits = context.convertValueFromUserUnits(value, unitMode(), unitType());
}
« no previous file with comments | « no previous file | Source/core/svg/SVGLengthContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698