LayoutTests:
Reviewed by Hyatt.
Test for: <rdar://problem/4963411> Items of SELECT element are incorrectly highlighted when display:block is set
* fast/forms/select-block-background-expected.checksum: Added.
* fast/forms/select-block-background-expected.png: Added.
* fast/forms/select-block-background-expected.txt: Added.
* fast/forms/select-block-background.html: Added.
WebCore:
Reviewed by Hyatt.
Fix for <rdar://problem/4963411> Items of SELECT element are incorrectly highlighted when display:block is set
Test: fast/forms/select-block-background.html
* rendering/RenderListBox.cpp: (WebCore::RenderListBox::paintObject):
Paint the item backgrounds during the PaintPhaseChildBlockBackground or PaintPhaseChildBlockBackgrounds phase.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19518 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/fast/forms/select-block-background.html b/LayoutTests/fast/forms/select-block-background.html
new file mode 100644
index 0000000..d978938
--- /dev/null
+++ b/LayoutTests/fast/forms/select-block-background.html
@@ -0,0 +1,8 @@
+<html>
+ <body>
+ This tests that backgrounds for list box items draw correctly when a list box is a block<br>
+ <select style="display: block;" multiple>
+ <option selected>Item1</option>
+ </select>
+ </body>
+</html>