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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLengthContext.cpp

Issue 2591663003: Use double precision in SVGLengthContext::convertValueToUserUnits (Closed)
Patch Set: Expectations updated Created 4 years 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 | « third_party/WebKit/LayoutTests/svg/custom/gradient-userSpaceOnUse-with-percentage-expected.png ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp b/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
index 7422e3dd0357ba2bb200f3b4b8036c85c666885c..de0637a6cd441858d986b78b513aac63967c9431 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
@@ -257,7 +257,7 @@ float SVGLengthContext::convertValueToUserUnits(
float value,
SVGLengthMode mode,
CSSPrimitiveValue::UnitType fromUnit) const {
- float userUnits = value;
+ double userUnits = value;
switch (fromUnit) {
case CSSPrimitiveValue::UnitType::Pixels:
case CSSPrimitiveValue::UnitType::Number:
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/custom/gradient-userSpaceOnUse-with-percentage-expected.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698