Seaming on border corners with mixed colour alpha borders
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Nov 2011 00:57:30 +0000 (00:57 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Nov 2011 00:57:30 +0000 (00:57 +0000)
commit1d5cc6de448512e4e784d35b431918040d71a203
tree366467c4b5e0dc5a29c877175e8c7b1e62fb7962
parent71b68a439a28f43bad8894f8e8e180bead4516d8
Seaming on border corners with mixed colour alpha borders
https://bugs.webkit.org/show_bug.cgi?id=70471

Patch by Ben Wells <benwells@chromium.org> on 2011-11-16
Reviewed by Simon Fraser.

Source/WebCore:

Seaming is fixed by antialiasing mitred corners for edges that have alpha and are joining
a side that is of a different color.

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

* rendering/RenderBoxModelObject.cpp:
(WebCore::colorNeedsAntiAliasAtCorner):
(WebCore::RenderBoxModelObject::paintOneBorderSide):

LayoutTests:

* fast/borders/border-mixed-alpha.html: Added.
* platform/chromium/test_expectations.txt:
* platform/mac/fast/borders/border-mixed-alpha-expected.png: Added.
* platform/mac/fast/borders/border-mixed-alpha-expected.txt: Added.

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