|
Remove GraphicsLayer::didScroll and directly call ScrollableArea::didScroll
This patch removes GraphicsLayer::didScroll, replacing this cc->blink
scroll callback with a direct call to Scrollablearea::didScroll. The
old function on GraphicsLayer was only used to lookup the scroll
offset but we can pass that along in the didScroll callback.
This patch will be useful for SPV2 which does not use GraphicsLayer and
can benefit from avoiding it, but this patch is intended to be useful
for SPV1. This code has been split off of a larger patch for composited
scrolling: https://codereview.chromium.org/2676923002.
BUG= 667946
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2680953002
Cr-Commit-Position: refs/heads/master@{#449073}
Committed: https://chromium.googlesource.com/chromium/src/+/27a8cfde871ad4786943a345569f36c9a5ba6e29
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+81 lines, -80 lines) |
Patch |
|
M |
cc/blink/web_layer_impl.h
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/blink/web_layer_impl.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
cc/layers/layer.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/layers/layer.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_unittest_scroll.cc
|
View
|
1
|
8 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
|
View
|
|
3 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
View
|
|
1 chunk |
+3 lines, -12 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp
|
View
|
1
2
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollableArea.h
|
View
|
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp
|
View
|
1
2
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/tests/WebFrameTest.cpp
|
View
|
1
2
|
4 chunks |
+6 lines, -11 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/WebLayer.h
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/WebLayerScrollClient.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/compositor/layer.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/compositor/layer.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/views/controls/scroll_view.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/views/controls/scroll_view.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 27 (15 generated)
|