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

Issue 23480037: Fix RTL scroll bars being misrendered on Android. (Closed)

Created:
7 years, 3 months ago by tony
Modified:
7 years, 3 months ago
Reviewers:
jamesr, ojan
CC:
blink-reviews, jamesr, eae+blinkwatch, tommyw+watchlist_chromium.org, leviw+renderwatch, blink-layers+watch_chromium.org, dglazkov+blink, jchaffraix+rendering, abarth-chromium, jeez
Visibility:
Public.

Description

Fix RTL scroll bars being misrendered on Android. In https://chromiumcodereview.appspot.com/23734003 , I tried to include information about whether to use a left side scrollbar by adding a textDirection method to WebScrollbar. It missed some cases when there is no horizontal scrolling. I also renamed to textDirection() and isRightToLeft() to shouldPlaceVerticalScrollbarOnLeft() because writing mode direction can also cause the scrollbar to be on the left. Fix the bug in ScrollbarThemeOverlay::paintThumb to take the left side scrollbars into account. BUG=274010 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157406

Patch Set 1 #

Patch Set 2 : less churn #

Patch Set 3 : isLeftSideVerticalScrollbar #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -29 lines) Patch
M LayoutTests/fast/scrolling/overlay-scrollbars.html View 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/scrolling/overlay-scrollbars-expected.html View 1 chunk +10 lines, -2 lines 0 comments Download
M Source/core/platform/ScrollView.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/platform/ScrollView.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/platform/ScrollableArea.h View 3 chunks +1 line, -3 lines 0 comments Download
M Source/core/platform/ScrollableArea.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/platform/Scrollbar.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/platform/Scrollbar.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/platform/ScrollbarTheme.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M Source/core/platform/ScrollbarThemeClient.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/platform/ScrollbarThemeOverlay.cpp View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M Source/core/platform/chromium/support/WebScrollbarImpl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/chromium/support/WebScrollbarImpl.cpp View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M Source/core/platform/chromium/support/WebScrollbarThemeClientImpl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/platform/chromium/support/WebScrollbarThemeClientImpl.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayer.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayerScrollableArea.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderLayerScrollableArea.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderListBox.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderListBox.cpp View 2 chunks +7 lines, -2 lines 0 comments Download
M Source/web/ScrollbarGroup.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ScrollbarGroup.cpp View 1 chunk +5 lines, -0 lines 1 comment Download
M Source/web/WebPluginScrollbarImpl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebPluginScrollbarImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/GraphicsLayerTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/tests/ScrollAnimatorNoneTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M public/platform/WebScrollbar.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
tony
7 years, 3 months ago (2013-09-05 23:19:03 UTC) #1
jamesr
It feels weird to ask a Scrollbar if it should place a vertical scrollbar on ...
7 years, 3 months ago (2013-09-05 23:53:05 UTC) #2
tony
On 2013/09/05 23:53:05, jamesr wrote: > It feels weird to ask a Scrollbar if it ...
7 years, 3 months ago (2013-09-06 02:06:00 UTC) #3
tony
ping, should I rename the function, add a member variable to scrollbar or some combination ...
7 years, 3 months ago (2013-09-06 19:34:58 UTC) #4
jamesr
Sorry about the delay. I care more about the name of the function than storage ...
7 years, 3 months ago (2013-09-06 22:15:10 UTC) #5
tony
On 2013/09/06 22:15:10, jamesr wrote: > Sorry about the delay. I care more about the ...
7 years, 3 months ago (2013-09-06 22:35:25 UTC) #6
jamesr
lgtm https://codereview.chromium.org/23480037/diff/11001/Source/web/ScrollbarGroup.cpp File Source/web/ScrollbarGroup.cpp (right): https://codereview.chromium.org/23480037/diff/11001/Source/web/ScrollbarGroup.cpp#newcode270 Source/web/ScrollbarGroup.cpp:270: return false; interesting, i guess we never RTL-flip ...
7 years, 3 months ago (2013-09-06 22:46:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tony@chromium.org/23480037/11001
7 years, 3 months ago (2013-09-06 23:12:38 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=4558
7 years, 3 months ago (2013-09-07 00:18:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tony@chromium.org/23480037/11001
7 years, 3 months ago (2013-09-07 00:54:31 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-09-07 03:25:01 UTC) #11
Message was sent while issue was closed.
Change committed as 157406

Powered by Google App Engine
This is Rietveld 408576698