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

Issue 853103003: Fix drag-and-drop autoscrolling with --enable-pinch-virtual-viewport (Closed)

Created:
5 years, 11 months ago by bokan
Modified:
5 years, 11 months ago
Reviewers:
Rick Byers
CC:
blink-reviews, blink-reviews-rendering, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, Dominik Röttsches, jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -3 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 3 4 1 chunk +14 lines, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
bokan
Hey Rick, ptal when you have a minute. FYI, this one will need a merge ...
5 years, 11 months ago (2015-01-15 23:53:01 UTC) #2
bokan
Actually, hold off while I investigate, the unit tests were passing locally but are failing ...
5 years, 11 months ago (2015-01-16 16:23:50 UTC) #3
bokan
Ok, ptal now. The test was failing locally as well, I must have run the ...
5 years, 11 months ago (2015-01-16 20:39:24 UTC) #4
Rick Byers
On 2015/01/16 20:39:24, bokan wrote: > Ok, ptal now. The test was failing locally as ...
5 years, 11 months ago (2015-01-19 21:21:20 UTC) #5
bokan
On 2015/01/19 21:21:20, Rick Byers wrote: > On 2015/01/16 20:39:24, bokan wrote: > > Ok, ...
5 years, 11 months ago (2015-01-22 16:26:22 UTC) #6
bokan
Rick, PTAL. Like I said, it's not ideal but I'll clean it up when enabling ...
5 years, 11 months ago (2015-01-23 01:09:43 UTC) #7
Rick Byers
LGTM I agree keeping this minimal is the right fix to merge. I know you'll ...
5 years, 11 months ago (2015-01-23 22:07:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/853103003/80001
5 years, 11 months ago (2015-01-26 12:11:33 UTC) #10
commit-bot: I haz the power
5 years, 11 months ago (2015-01-26 13:27:45 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188953

Powered by Google App Engine
This is Rietveld 408576698