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

Unified Diff: cc/blink/web_scroll_offset_animation_curve_impl.cc

Issue 584503005: Make scroll offset type of float in cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: link crbug to TODO Created 6 years, 3 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 | « cc/blink/web_layer_impl.cc ('k') | cc/input/layer_scroll_offset_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_scroll_offset_animation_curve_impl.cc
diff --git a/cc/blink/web_scroll_offset_animation_curve_impl.cc b/cc/blink/web_scroll_offset_animation_curve_impl.cc
index e1f1bfd7d1990ae0505d9e346c8ed48c9788ce49..e7896317d00c36c64cf76c2aacb6db206eee2b38 100644
--- a/cc/blink/web_scroll_offset_animation_curve_impl.cc
+++ b/cc/blink/web_scroll_offset_animation_curve_impl.cc
@@ -16,7 +16,7 @@ WebScrollOffsetAnimationCurveImpl::WebScrollOffsetAnimationCurveImpl(
WebFloatPoint target_value,
TimingFunctionType timing_function)
: curve_(cc::ScrollOffsetAnimationCurve::Create(
- gfx::Vector2dF(target_value.x, target_value.y),
+ gfx::ScrollOffset(target_value.x, target_value.y),
CreateTimingFunction(timing_function))) {
}
@@ -30,11 +30,11 @@ WebScrollOffsetAnimationCurveImpl::type() const {
void WebScrollOffsetAnimationCurveImpl::setInitialValue(
WebFloatPoint initial_value) {
- curve_->SetInitialValue(gfx::Vector2dF(initial_value.x, initial_value.y));
+ curve_->SetInitialValue(gfx::ScrollOffset(initial_value.x, initial_value.y));
}
WebFloatPoint WebScrollOffsetAnimationCurveImpl::getValue(double time) const {
- gfx::Vector2dF value = curve_->GetValue(time);
+ gfx::ScrollOffset value = curve_->GetValue(time);
return WebFloatPoint(value.x(), value.y());
}
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/input/layer_scroll_offset_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698