Fill list style background with same color with that of list background.
authorchangseok.oh@collabora.com <changseok.oh@collabora.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Apr 2015 17:14:07 +0000 (17:14 +0000)
committerchangseok.oh@collabora.com <changseok.oh@collabora.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Apr 2015 17:14:07 +0000 (17:14 +0000)
commit64938834f1c560cec990a686502faaf25071ed9b
tree46fb7ba5dd86377b7dbc67de326c99722f3cd854
parent272dfb602f263781a21effe5d59a2fef15eb5946
Fill list style background with same color with that of list background.
https://bugs.webkit.org/show_bug.cgi?id=143483

Reviewed by Simon Fraser.

Source/WebCore:

LayoutListMarker does not have a node so its selectionBackgroundColor alway returns
the default theme color for selection. We can make it more natural by filling
the same color with that of LayoutListItem into it.

Tests: fast/backgrounds/selection-background-color-of-image-list-style.html
       fast/backgrounds/selection-background-color-of-list-style.html

* rendering/RenderListMarker.cpp:
(WebCore::RenderListMarker::paint):

LayoutTests:

* fast/backgrounds/selection-background-color-of-image-list-style.html: Added.
* fast/backgrounds/selection-background-color-of-list-style.html: Added.
* platform/gtk/fast/backgrounds/selection-background-color-of-image-list-style-expected.png: Added.
* platform/gtk/fast/backgrounds/selection-background-color-of-image-list-style-expected.txt: Added.
* platform/gtk/fast/backgrounds/selection-background-color-of-list-style-expected.png: Added.
* platform/gtk/fast/backgrounds/selection-background-color-of-list-style-expected.txt: Added.
* platform/mac/fast/backgrounds/selection-background-color-of-image-list-style-expected.png: Added.
* platform/mac/fast/backgrounds/selection-background-color-of-image-list-style-expected.txt: Added.
* platform/mac/fast/backgrounds/selection-background-color-of-list-style-expected.png: Added.
* platform/mac/fast/backgrounds/selection-background-color-of-list-style-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/backgrounds/selection-background-color-of-image-list-style.html [new file with mode: 0644]
LayoutTests/fast/backgrounds/selection-background-color-of-list-style.html [new file with mode: 0644]
LayoutTests/platform/gtk/fast/backgrounds/selection-background-color-of-image-list-style-expected.png [new file with mode: 0644]
LayoutTests/platform/gtk/fast/backgrounds/selection-background-color-of-image-list-style-expected.txt [new file with mode: 0644]
LayoutTests/platform/gtk/fast/backgrounds/selection-background-color-of-list-style-expected.png [new file with mode: 0644]
LayoutTests/platform/gtk/fast/backgrounds/selection-background-color-of-list-style-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/fast/backgrounds/selection-background-color-of-image-list-style-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/backgrounds/selection-background-color-of-image-list-style-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/fast/backgrounds/selection-background-color-of-list-style-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/backgrounds/selection-background-color-of-list-style-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderListMarker.cpp