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

Issue 14807003: Unifies ScrollView and RenderLayer to use non-shifted [minPos, maxPos] scroll offset (Closed)

Created:
7 years, 7 months ago by trchen
Modified:
7 years, 7 months ago
CC:
blink-reviews, jeez, jchaffraix+rendering
Visibility:
Public.

Description

Unifies ScrollView and RenderLayer to use non-shifted [minPos, maxPos] scroll offset For pages with negative overflow (due to RTL or writing mode), there are two sets of scroll offset defined. One that ranges from [0, maxPos - minPos] and the other one ranges from [minPos, maxPos]. To reduce confusion, this patch unifies ScrollView and RenderLayer to use the second definition of scroll offset. BUG=232063 TEST=manual R=jamesr@chromium.org,jchaffraix@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150124

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix unit tests and ScrollAnimatorMac #

Total comments: 4

Patch Set 3 : correct scrolling for RTL RenderLayer #

Patch Set 4 : rebaseline layout tests #

Patch Set 5 : no PNGs. :( #

Patch Set 6 : rebaseline one last test. temporary change TestExpectation #

Patch Set 7 : rebased #

Total comments: 5

Patch Set 8 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -84 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/compositing/overflow/composited-scrolling-creates-a-stacking-container-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/compositing/overflow/composited-scrolling-paint-phases-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/compositing/overflow/scrolling-content-clip-to-viewport-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
LayoutTests/compositing/overflow/scrolling-without-painting-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/compositing/overflow/textarea-scroll-touch-expected.txt View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/compositing/overflow/updating-scrolling-content-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/multicol/shrink-to-column-height-for-pagination.html View 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/platform/chromium-linux/compositing/overflow/scrolling-without-painting-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/chromium-linux/compositing/overflow/updating-scrolling-content-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/chromium-linux/virtual/gpu/compositedscrolling/overflow/scrolling-content-clip-to-viewport-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/chromium-linux/virtual/gpu/compositedscrolling/overflow/scrolling-without-painting-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/chromium-linux/virtual/gpu/compositedscrolling/overflow/updating-scrolling-content-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/chromium-linux/virtual/softwarecompositing/overflow/scrolling-content-clip-to-viewport-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/chromium-linux/virtual/softwarecompositing/overflow/scrolling-without-painting-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/chromium-linux/virtual/softwarecompositing/overflow/updating-scrolling-content-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/chromium-mac/compositing/overflow/textarea-scroll-touch-expected.txt View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/virtual/gpu/compositedscrolling/overflow/composited-scrolling-creates-a-stacking-container-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/gpu/compositedscrolling/overflow/composited-scrolling-paint-phases-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/gpu/compositedscrolling/overflow/overflow-auto-with-touch-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/gpu/compositedscrolling/overflow/overflow-auto-with-touch-toggle-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/gpu/compositedscrolling/overflow/scrolling-without-painting-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/gpu/compositedscrolling/overflow/updating-scrolling-content-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/softwarecompositing/overflow/composited-scrolling-creates-a-stacking-container-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/softwarecompositing/overflow/composited-scrolling-paint-phases-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/softwarecompositing/overflow/scrolling-without-painting-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/softwarecompositing/overflow/updating-scrolling-content-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/WebKit/chromium/tests/ScrollAnimatorNoneTest.cpp View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/platform/ScrollAnimator.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/ScrollView.cpp View 1 2 2 chunks +2 lines, -13 lines 0 comments Download
M Source/core/platform/ScrollableArea.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/platform/Scrollbar.cpp View 1 2 2 chunks +6 lines, -8 lines 0 comments Download
M Source/core/platform/graphics/chromium/GraphicsLayerChromium.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/mac/ScrollAnimatorMac.mm View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderLayer.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 3 4 5 6 5 chunks +12 lines, -18 lines 0 comments Download
M Source/core/rendering/RenderLayerBacking.cpp View 1 2 3 4 5 6 1 chunk +12 lines, -10 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
trchen
https://codereview.chromium.org/14807003/diff/1/LayoutTests/fast/multicol/shrink-to-column-height-for-pagination.html File LayoutTests/fast/multicol/shrink-to-column-height-for-pagination.html (right): https://codereview.chromium.org/14807003/diff/1/LayoutTests/fast/multicol/shrink-to-column-height-for-pagination.html#newcode10 LayoutTests/fast/multicol/shrink-to-column-height-for-pagination.html:10: } I'm hesitant about what do with this test. ...
7 years, 7 months ago (2013-05-02 00:17:44 UTC) #1
jamesr
https://codereview.chromium.org/14807003/diff/1/Source/core/platform/Scrollbar.cpp File Source/core/platform/Scrollbar.cpp (right): https://codereview.chromium.org/14807003/diff/1/Source/core/platform/Scrollbar.cpp#newcode292 Source/core/platform/Scrollbar.cpp:292: float maxPos = (m_orientation == HorizontalScrollbar) ? m_scrollableArea->maximumScrollPosition().x() : ...
7 years, 7 months ago (2013-05-03 05:59:22 UTC) #2
trchen
Okay. I added some convenience functions to ScrollablaArea to get scroll parameters for a certain ...
7 years, 7 months ago (2013-05-03 23:19:12 UTC) #3
jamesr
lgtm https://codereview.chromium.org/14807003/diff/6001/Source/WebKit/chromium/tests/ScrollAnimatorNoneTest.cpp File Source/WebKit/chromium/tests/ScrollAnimatorNoneTest.cpp (right): https://codereview.chromium.org/14807003/diff/6001/Source/WebKit/chromium/tests/ScrollAnimatorNoneTest.cpp#newcode154 Source/WebKit/chromium/tests/ScrollAnimatorNoneTest.cpp:154: // EXPECT_CALL(scrollableArea, scrollSize(_)).Times(AtLeast(1)).WillRepeatedly(Return(1000)); delete this line if you ...
7 years, 7 months ago (2013-05-07 03:33:31 UTC) #4
trchen
Thanks! I'm doing a final check to make sure scrolling still works in both threaded ...
7 years, 7 months ago (2013-05-07 03:39:58 UTC) #5
trchen
Hello James, I made more changes to RenderLayer and RenderLayerBacking. Please let me know if ...
7 years, 7 months ago (2013-05-09 22:28:55 UTC) #6
Julien - ping for review
LGTM RenderListBox wasn't updated as part of this change (which means we run into the ...
7 years, 7 months ago (2013-05-10 01:03:34 UTC) #7
trchen
On 2013/05/10 01:03:34, Julien Chaffraix wrote: > LGTM > > RenderListBox wasn't updated as part ...
7 years, 7 months ago (2013-05-10 01:27:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/14807003/33001
7 years, 7 months ago (2013-05-10 01:29:13 UTC) #9
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 ...
7 years, 7 months ago (2013-05-10 01:29:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/14807003/46001
7 years, 7 months ago (2013-05-10 01:31:58 UTC) #11
commit-bot: I haz the power
Retried try job too often on mac_layout for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout&number=1630
7 years, 7 months ago (2013-05-10 07:50:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/14807003/46001
7 years, 7 months ago (2013-05-10 08:14:40 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=1752
7 years, 7 months ago (2013-05-10 13:43:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/14807003/46001
7 years, 7 months ago (2013-05-10 19:18:48 UTC) #15
commit-bot: I haz the power
7 years, 7 months ago (2013-05-10 19:19:36 UTC) #16
Message was sent while issue was closed.
Change committed as 150124

Powered by Google App Engine
This is Rietveld 408576698