Incorrect use of minimumScrollPosition() in ScrollingCoordinator |
||||
Issue descriptionScrollingCoordinator::scrollableAreaScrollLayerDidChange() subtracts the minimumScrollPosition() of the ScrollableArea from the scroll position that is applied to the area's scroll layer. This seems to be done for the purpose of supporting right-to-left frames. In this context, it makes more sense to use the area's scrollOrigin(), which directly reflects the RTL behavior, instead of the minimumScrollPosition(), as the minimumScrollPosition may be overridden by users of the area (see e.g. https://codereview.chromium.org/2096633002/).
,
Jul 4 2016
,
Jul 20 2016
This also happens in PaintLayerCompositor::frameViewDidScroll() and GraphicsLayer::didScroll(). We should use scrollOrigin() there as well.
,
Sep 27 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/0ace38cb311d604745708c31284ba4ff291c4734 commit 0ace38cb311d604745708c31284ba4ff291c4734 Author: eseckler <eseckler@chromium.org> Date: Tue Sep 27 09:39:17 2016 Use scrollOrigin instead of minimumScrollPosition to calculate current layer position in PaintLayerCompositor and GraphicsLayer. It makes more sense to use the area's scrollOrigin() instead of the minimumScrollPosition(), as the minimumScrollPosition may be overridden by users of the area (see e.g. https://codereview.chromium.org/2096633002/). BUG= 625084 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2169483002 Cr-Commit-Position: refs/heads/master@{#421159} [modify] https://crrev.com/0ace38cb311d604745708c31284ba4ff291c4734/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp [modify] https://crrev.com/0ace38cb311d604745708c31284ba4ff291c4734/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
,
Sep 27 2016
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Jul 1 2016