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

Issue 678153003: Use layout units in PinchViewport::scrollIntoView. (Closed)

Created:
6 years, 1 month ago by aelias_OOO_until_Jul13
Modified:
6 years, 1 month ago
Reviewers:
bokan, Rick Byers
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Use layout units in PinchViewport::scrollIntoView. The pinch viewport visibleRect is snapped to LayoutRect in RenderBox::scrollRectToVisible, but it remained at full precision FloatRect when used in PinchViewport::scrollIntoView. This caused a small scroll in cases that should've been a no-op. This changes PinchViewport::scrollIntoView to cast visibleRect() to a LayoutRect before using it, fixing the issue by making the imprecision cancel out. I also changed the argument rect to a LayoutRect to avoid the reverse problem of too much precision in that one in the future. NOTRY=true BUG=428826 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184818

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -11 lines) Patch
M Source/core/frame/PinchViewport.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/PinchViewport.cpp View 1 chunk +8 lines, -5 lines 0 comments Download
M Source/web/tests/PinchViewportTest.cpp View 3 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
aelias_OOO_until_Jul13
PTAL, rbyers@ for OWNERS. Note the unit test I modified had been disabled by the ...
6 years, 1 month ago (2014-11-01 03:00:15 UTC) #2
bokan
lgtm. FYI, the DISABLED tests were causing problems on some Mac bots sometimes. Turns out ...
6 years, 1 month ago (2014-11-03 14:35:47 UTC) #3
aelias_OOO_until_Jul13
OK, still need Source/core OWNERS from rbyers.
6 years, 1 month ago (2014-11-03 19:08:12 UTC) #4
Rick Byers
LGTM - sorry for the delay, travelling
6 years, 1 month ago (2014-11-04 05:47:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/678153003/1
6 years, 1 month ago (2014-11-04 05:49:59 UTC) #7
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 05:50:34 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 184818

Powered by Google App Engine
This is Rietveld 408576698