2011-05-25 Simon Fraser <simon.fraser@apple.com>
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 26 May 2011 18:53:08 +0000 (15:53 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 26 May 2011 18:53:08 +0000 (15:53 -0300)
commit4539766889f00d76901a022e99ca0a2d3053e3f7
tree275fcb8b43c8da36b5a60448353d9db109bee099
parentd18ba15ce401bd8d400a0610c4a30078c41df867
2011-05-25  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein.

        Always antialias borders, outlines and rules when scaling
        https://bugs.webkit.org/show_bug.cgi?id=61502

        r84273 changed the behavior of drawLineForBoxSide() to never antialias by default.
        This actually disabled antialiasing in some circumstances where it used to be enabled,
        for example collapsed table border drawing.

        Fix by allowing antialiasing for collapsed table borders, column rules and span
        outlines when the context is scaled.

        Test: fast/borders/border-antialiasing.html

        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::paintColumnRules):
        * rendering/RenderInline.cpp:
        (WebCore::RenderInline::paintOutline):
        (WebCore::RenderInline::paintOutlineForLine):
        * rendering/RenderTableCell.cpp:
        (WebCore::RenderTableCell::paintCollapsedBorder):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87387 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Conflicts:

Source/WebCore/rendering/RenderInline.cpp
Source/WebCore/rendering/RenderTableCell.cpp
LayoutTests/ChangeLog
LayoutTests/fast/borders/border-antialiasing.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/borders/border-antialiasing-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/borders/border-antialiasing-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp
Source/WebCore/rendering/RenderInline.cpp
Source/WebCore/rendering/RenderTableCell.cpp