[Outline: auto] Fractional radius value could result in non-renderable rounded border.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Mar 2016 18:01:24 +0000 (18:01 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Mar 2016 18:01:24 +0000 (18:01 +0000)
commit2c8edb7885bec8cb0c4e86f72c6f80f8ec49d22f
treebf3aabf03c9d0c951e699e3ba6d58bcedec5b02c
parente5e37192245b35e42383912a30bf475ded7fd6c7
[Outline: auto] Fractional radius value could result in non-renderable rounded border.
https://bugs.webkit.org/show_bug.cgi?id=155420

Reviewed by Tim Horton.

RoundedRect::pixelSnappedRoundedRectForPainting ensures that the rounded rect is always renderable.

Source/WebCore:

Test: fast/inline/hidpi-outline-auto-with-fractional-radius.html

* platform/graphics/PathUtilities.cpp:
(WebCore::PathUtilities::pathWithShrinkWrappedRectsForOutline):
* platform/graphics/PathUtilities.h:
* rendering/RenderElement.cpp:
(WebCore::RenderElement::paintFocusRing):

LayoutTests:

* fast/inline/hidpi-outline-auto-with-fractional-radius-expected.html: Added.
* fast/inline/hidpi-outline-auto-with-fractional-radius.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/inline/hidpi-outline-auto-with-fractional-radius-expected.html [new file with mode: 0644]
LayoutTests/fast/inline/hidpi-outline-auto-with-fractional-radius.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/PathUtilities.cpp
Source/WebCore/platform/graphics/PathUtilities.h
Source/WebCore/rendering/RenderElement.cpp