Groove/inset/outset borders show solid if the color is black
authorcavalcantii@gmail.com <cavalcantii@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Dec 2014 22:01:30 +0000 (22:01 +0000)
committercavalcantii@gmail.com <cavalcantii@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Dec 2014 22:01:30 +0000 (22:01 +0000)
commitb0fc2c9278749b714df990258539c75f5486f352
tree3b5c2a929ae195993460603fa5ee2b58f17cb746
parent0a35fdc736606d418fa7a0c3f31970825c9b0508
Groove/inset/outset borders show solid if the color is black
https://bugs.webkit.org/show_bug.cgi?id=58608

Reviewed by Simon Fraser.

Source/WebCore:

Test: fast/borders/mixed-border-style2.html

This patch will lighten/darken the border side colors, handling
border decoration in a similar way as Firefox does.

* rendering/RenderObject.cpp:
(WebCore::RenderObject::drawLineForBoxSide):
(WebCore::RenderObject::calculateBorderStyleColor):
* rendering/RenderObject.h:

LayoutTests:

* fast/borders/mixed-border-style2.html: Added.
* platform/mac-mavericks/fast/borders/mixed-border-style2-expected.png: Added.
* platform/mac-mavericks/fast/borders/mixed-border-style2-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@176816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/borders/mixed-border-style2.html [new file with mode: 0644]
LayoutTests/platform/mac-mavericks/fast/borders/mixed-border-style2-expected.png [new file with mode: 0644]
LayoutTests/platform/mac-mavericks/fast/borders/mixed-border-style2-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderObject.cpp
Source/WebCore/rendering/RenderObject.h