REGRESSION (Subpixel): Dashed underline is missing when box is positioned at subpixels.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 May 2015 23:24:00 +0000 (23:24 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 May 2015 23:24:00 +0000 (23:24 +0000)
commite8b42fbcbb15ddf3b58ab37bfe23b86d37dea62b
tree0ccc7b26f44ea55dbbbc7fbf736fe21a56d791b9
parente25a43d72590f92f11022225d1252fa910bc5f81
REGRESSION (Subpixel): Dashed underline is missing when box is positioned at subpixels.
https://bugs.webkit.org/show_bug.cgi?id=145097
rdar://problem/18588415

Reviewed by Simon Fraser.

Dashed and dotted border painting needs clipping in order to properly display corners.
Similarly to solid border's quad calculation, we pixelsnap the border positions before computing the clipping quad values.

Source/WebCore:

Test: fast/borders/dashed-border-on-subpixel-position.html
      fast/borders/dotted-border-on-subpixel-position.html

* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::clipBorderSidePolygon):

LayoutTests:

* fast/borders/dashed-border-on-subpixel-position-expected.html: Added.
* fast/borders/dashed-border-on-subpixel-position.html: Added.
* fast/borders/dotted-border-on-subpixel-position-expected.html: Added.
* fast/borders/dotted-border-on-subpixel-position.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/borders/dashed-border-on-subpixel-position-expected.html [new file with mode: 0644]
LayoutTests/fast/borders/dashed-border-on-subpixel-position.html [new file with mode: 0644]
LayoutTests/fast/borders/dotted-border-on-subpixel-position-expected.html [new file with mode: 0644]
LayoutTests/fast/borders/dotted-border-on-subpixel-position.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBoxModelObject.cpp