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

Unified Diff: ui/gfx/geometry/scroll_offset.cc

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: Fix README.md Created 4 years, 2 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 | « ui/gfx/geometry/scroll_offset.h ('k') | ui/gfx/geometry/scroll_offset_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/scroll_offset.cc
diff --git a/ui/gfx/geometry/scroll_offset.cc b/ui/gfx/geometry/scroll_offset.cc
index 37356d83a086d308b1fcbf2fae31e904eca9912e..063b050aca934728fdc0f96a1d2749a8416e8d8e 100644
--- a/ui/gfx/geometry/scroll_offset.cc
+++ b/ui/gfx/geometry/scroll_offset.cc
@@ -9,7 +9,7 @@
namespace gfx {
std::string ScrollOffset::ToString() const {
- return base::StringPrintf("[%lf %lf]", x_, y_);
+ return base::StringPrintf("[%f %f]", x_, y_);
}
} // namespace gfx
« no previous file with comments | « ui/gfx/geometry/scroll_offset.h ('k') | ui/gfx/geometry/scroll_offset_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698