Chromium Code Reviews
DescriptionFix drag-and-drop autoscrolling with --enable-pinch-virtual-viewport
The autoscrolling code uses RenderBox::scrollRectToVisible but because the
virtual-viewport path was using the pinch viewport as the visible rect, it
also included the scrollbar area, meaning the autoscroll region was shifted
outwards.
The fix here intersects the PinchViewport visible rect with the main FrameView's
visible rect to remove the scrollbar from the region. This is done both in
RenderBox::scrollRectToVisible and PinchViewport::scrollIntoView to prevent
scrollIntoView from counter scrolling the FrameView due to it's rect centering
logic.
No new test since existing layout test already exists for this and is reenabled
by this patch.
BUG=443631, 428980
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188953
Patch Set 1 #Patch Set 2 : #
Total comments: 1
Patch Set 3 : Missed another instance of the test in TestExpectations #Patch Set 4 : Fixed PinchViewport::scrollIntoView #Patch Set 5 : Change only RenderBox #Messages
Total messages: 11 (2 generated)
|