Windows select element doesn't draw RTL properly.
authorroger_fong@apple.com <roger_fong@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Oct 2013 01:06:20 +0000 (01:06 +0000)
committerroger_fong@apple.com <roger_fong@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Oct 2013 01:06:20 +0000 (01:06 +0000)
commit785151d07459c710bf21c0ade90c85edfdd576dc
tree0a82d7a4e19a8b7939e983b3e67b232a3ef302d3
parent08d9ebb4150fe3c9e572c4b3e069482f65a543eb
Windows select element doesn't draw RTL properly.
https://bugs.webkit.org/show_bug.cgi?id=122785.

Reviewed by Brent Fulgham.

Problems include the popup items not drawing on the right hand side and
not respecting the direction or the directional override styling of the option.
The selected element (drawn in the actual select element) also doesn't respect
the style settings of the selected menu option.

Tests:
Covered by fast/text/international/pop-up-button-text-alignment-and-direction.html.

* platform/win/PopupMenuWin.cpp:
(WebCore::PopupMenuWin::paint):
* WebCoreSupport/WebChromeClient.cpp:
(WebChromeClient::selectItemWritingDirectionIsNatural):
(WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection):
* platform/win/fast/text/international/pop-up-button-text-alignment-and-direction-expected.txt: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/win/fast/text/international/pop-up-button-text-alignment-and-direction-expected.txt [deleted file]
Source/WebCore/ChangeLog
Source/WebCore/platform/win/PopupMenuWin.cpp
Source/WebKit/win/ChangeLog
Source/WebKit/win/WebCoreSupport/WebChromeClient.cpp