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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp

Issue 2907053004: GSB uses delta_hints to calculate scrolling chain. (Closed)
Patch Set: ignore_delta_hints_ deleted. Created 3 years, 6 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/page/scrolling/ScrollState.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp
index fe5daa5c507dfb1514c22a6fe3ce551f2426da68..0765ccb1ff15ea6ef34a1a4592ed2e854cbb8918 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp
@@ -32,6 +32,8 @@ ScrollState* ScrollState::Create(ScrollStateInit init) {
WTF::MakeUnique<ScrollStateData>();
scroll_state_data->delta_x = init.deltaX();
scroll_state_data->delta_y = init.deltaY();
+ scroll_state_data->delta_x_hint = init.deltaXHint();
+ scroll_state_data->delta_y_hint = init.deltaYHint();
scroll_state_data->position_x = init.positionX();
scroll_state_data->position_y = init.positionY();
scroll_state_data->velocity_x = init.velocityX();

Powered by Google App Engine
This is Rietveld 408576698