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

Issue 610423004: Preserve fractional scroll offset for JS scrolling API (Closed)

Created:
6 years, 2 months ago by Yufeng Shen (Slow to review)
Modified:
6 years, 2 months ago
Reviewers:
miletus1, eae, Rick Byers
CC:
blink-reviews, jamesr, blink-reviews-html_chromium.org, Rik, jbroman, zoltan1, sof, eae+blinkwatch, leviw+renderwatch, mkwst+moarreviews_chromium.org, blink-layers+watch_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-rendering, jchaffraix+rendering, pdr+renderingwatchlist_chromium.org, danakj, Stephen Chennney, rune+blink, pdr+graphicswatchlist_chromium.org, krit, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Preserve fractional scroll offset for JS scrolling API This patch makes that the fractional scroll offset set by JS scrolling API: div.scrollTop, div.scrollLeft, window.scroll, window.scrollTo and window.scrollBy do not get truncated when passing through blink. BUG=414283 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183486

Patch Set 1 #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : address comments #

Total comments: 4

Patch Set 4 : rebase #

Patch Set 5 : fix LayoutTests #

Patch Set 6 : rebase #

Patch Set 7 : use auto-rebaselining #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -134 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 2 chunks +56 lines, -1 line 0 comments Download
M LayoutTests/fast/events/scale-and-scroll-div.html View 3 chunks +5 lines, -4 lines 0 comments Download
M LayoutTests/fast/events/scale-and-scroll-div-expected.txt View 1 chunk +8 lines, -8 lines 0 comments Download
M LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-scaled.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-scaled-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/scrolling/scrolling-apis-subpixel.html View 1 2 3 chunks +12 lines, -8 lines 0 comments Download
M LayoutTests/fast/scrolling/scrolling-apis-subpixel-expected.txt View 1 chunk +29 lines, -16 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/FrameView.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/PinchViewport.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/HTMLBodyElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/ImageDocument.cpp View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/rendering/RenderBox.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 3 4 5 7 chunks +14 lines, -13 lines 0 comments Download
M Source/core/rendering/RenderLayerScrollableArea.h View 1 2 3 4 5 5 chunks +11 lines, -9 lines 0 comments Download
M Source/core/rendering/RenderLayerScrollableArea.cpp View 1 2 3 4 5 6 7 8 6 chunks +36 lines, -20 lines 0 comments Download
M Source/core/rendering/compositing/CompositedLayerMapping.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M Source/platform/geometry/DoublePoint.h View 1 2 3 2 chunks +17 lines, -2 lines 0 comments Download
M Source/platform/geometry/DoubleSize.h View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M Source/platform/scroll/ScrollView.h View 1 2 3 4 5 6 7 8 4 chunks +7 lines, -5 lines 0 comments Download
M Source/platform/scroll/ScrollView.cpp View 1 2 3 9 chunks +20 lines, -18 lines 0 comments Download
M Source/platform/scroll/ScrollableArea.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 26 (8 generated)
Yufeng Shen (Slow to review)
6 years, 2 months ago (2014-10-02 21:08:23 UTC) #2
Rick Byers
Great, thanks! I'm sure we're going to hit some subtle issues with partial conversion or ...
6 years, 2 months ago (2014-10-02 21:44:06 UTC) #3
eae
On 2014/10/02 21:44:06, Rick Byers wrote: > Great, thanks! > > I'm sure we're going ...
6 years, 2 months ago (2014-10-02 21:52:36 UTC) #4
Yufeng Shen (Slow to review)
https://codereview.chromium.org/610423004/diff/20001/LayoutTests/fast/scrolling/scrolling-apis-subpixel.html File LayoutTests/fast/scrolling/scrolling-apis-subpixel.html (right): https://codereview.chromium.org/610423004/diff/20001/LayoutTests/fast/scrolling/scrolling-apis-subpixel.html#newcode31 LayoutTests/fast/scrolling/scrolling-apis-subpixel.html:31: var floatPrecision = 0.01; On 2014/10/02 21:44:05, Rick Byers ...
6 years, 2 months ago (2014-10-02 23:34:35 UTC) #5
Rick Byers
On 2014/10/02 21:52:36, eae wrote: > On 2014/10/02 21:44:06, Rick Byers wrote: > > Great, ...
6 years, 2 months ago (2014-10-03 16:33:55 UTC) #6
Rick Byers
LGTM I think it's fine to leave the pixel snapping question for a future CL. ...
6 years, 2 months ago (2014-10-03 16:42:46 UTC) #7
Yufeng Shen (Slow to review)
Emil, can you also give a review ?
6 years, 2 months ago (2014-10-07 20:14:05 UTC) #8
eae
https://codereview.chromium.org/610423004/diff/40001/Source/core/html/ImageDocument.cpp File Source/core/html/ImageDocument.cpp (right): https://codereview.chromium.org/610423004/diff/40001/Source/core/html/ImageDocument.cpp#newcode269 Source/core/html/ImageDocument.cpp:269: double scrollX = x / scale - (double)frame()->view()->width() / ...
6 years, 2 months ago (2014-10-08 16:19:36 UTC) #9
Yufeng Shen (Slow to review)
Emil, PTAL, thanks! https://codereview.chromium.org/610423004/diff/40001/Source/core/html/ImageDocument.cpp File Source/core/html/ImageDocument.cpp (right): https://codereview.chromium.org/610423004/diff/40001/Source/core/html/ImageDocument.cpp#newcode269 Source/core/html/ImageDocument.cpp:269: double scrollX = x / scale ...
6 years, 2 months ago (2014-10-08 18:12:08 UTC) #10
eae
LGTM
6 years, 2 months ago (2014-10-08 21:10:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610423004/120001
6 years, 2 months ago (2014-10-08 21:21:39 UTC) #13
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 2 months ago (2014-10-09 03:11:10 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610423004/120001
6 years, 2 months ago (2014-10-09 14:34:05 UTC) #17
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-10-09 14:34:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610423004/140001
6 years, 2 months ago (2014-10-09 16:32:40 UTC) #21
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-10-09 16:32:54 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610423004/200001
6 years, 2 months ago (2014-10-09 16:45:39 UTC) #25
commit-bot: I haz the power
6 years, 2 months ago (2014-10-09 18:55:36 UTC) #26
Message was sent while issue was closed.
Committed patchset #9 (id:200001) as 183486

Powered by Google App Engine
This is Rietveld 408576698