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

Issue 59333002: Make select drop down popup RTL aware (Closed)

Created:
7 years, 1 month ago by pals
Modified:
7 years, 1 month ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make select drop down popup RTL aware This CL puts a vertical scrollbar on the left if dir="RTL" for select drop-down list popups. Select menu list popups use PopupListBox which is derived from ScrollView. ScrollView places the vertical scrollbar always on right. Changes in ScrollView.cpp places the vertical scrollbar on left if shouldPlaceVerticalScrollbarOnLeft() is true. Scrollbars on iframe (crbug.com/250514) and main frame (viewport) outermost scrollbars (crbug.com/249860) are also placed by ScrollView but shouldPlaceVerticalScrollbarOnLeft() returns false so this CL does not alter the scrollbar placement for iframe and main frame. PopupListBox::shouldPlaceVerticalScrollbarOnLeft() returns true if dir="RTL", so vertical scrollbar appears on left for select menu list box. And the changes in FramelessScrollView.cpp and PopupListBox.cpp is required to move the windowClipRect and contents after the scrollbar respectively. BUG=269164 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161944

Patch Set 1 #

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -8 lines) Patch
M Source/core/platform/ScrollView.cpp View 1 4 chunks +5 lines, -5 lines 1 comment Download
M Source/core/platform/chromium/FramelessScrollView.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M Source/web/PopupListBox.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/PopupListBox.cpp View 1 3 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
pals
Please review. Could you please run trybot for this CL?
7 years, 1 month ago (2013-11-05 12:42:37 UTC) #1
ojan
Is it possible to write a test for this?
7 years, 1 month ago (2013-11-05 18:39:00 UTC) #2
pals
On 2013/11/05 18:39:00, ojan wrote: > Is it possible to write a test for this? ...
7 years, 1 month ago (2013-11-08 11:26:41 UTC) #3
ojan
Levi or Eric, mind doing this review? You know more about RTL than I do. ...
7 years, 1 month ago (2013-11-08 21:02:23 UTC) #4
pals
I tried building this test in Linux. But its crashing with below strace. I am ...
7 years, 1 month ago (2013-11-11 12:47:01 UTC) #5
eseidel
Could you attach the test for consideration? Also, can you add more text to your ...
7 years, 1 month ago (2013-11-11 18:53:36 UTC) #6
pals
On 2013/11/11 18:53:36, eseidel wrote: > Could you attach the test for consideration? > > ...
7 years, 1 month ago (2013-11-13 12:09:19 UTC) #7
eseidel
https://codereview.chromium.org/59333002/diff/110001/Source/core/platform/ScrollView.cpp File Source/core/platform/ScrollView.cpp (right): https://codereview.chromium.org/59333002/diff/110001/Source/core/platform/ScrollView.cpp#newcode454 Source/core/platform/ScrollView.cpp:454: IntRect vBarRect(shouldPlaceVerticalScrollbarOnLeft() ? 0 : (width() - m_verticalScrollbar->width()), ScrollView ...
7 years, 1 month ago (2013-11-13 18:00:53 UTC) #8
eseidel
lgtm
7 years, 1 month ago (2013-11-13 18:41:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sanjoy.pal@samsung.com/59333002/110001
7 years, 1 month ago (2013-11-13 18:42:26 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-11-13 20:37:17 UTC) #11
Message was sent while issue was closed.
Change committed as 161944

Powered by Google App Engine
This is Rietveld 408576698