Borders and box masks behave incorrectly with overlapping offsets
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jan 2012 22:21:48 +0000 (22:21 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jan 2012 22:21:48 +0000 (22:21 +0000)
commitc07aadc14bec03e95d20029054b69f0d9b6a4945
tree602b79aea6cd2957371f44a9001c56e4aacd2c82
parent20e2ce3eab74858d4bbf14e41c227a5d7c1d7ae1
Borders and box masks behave incorrectly with overlapping offsets
https://bugs.webkit.org/show_bug.cgi?id=76137

Source/WebCore:

Reviewed by Dean Jackson.

There are some correct behaviors for -webkit-mask-box-image where
parts of the mask are missing (when the sum of the slice sizes is
greater than one dimension of the image). To render correctly
in these cases, always use a transparency layer when rendering
the mask.

Test: fast/backgrounds/mask-box-image.html

* rendering/RenderBox.cpp:
(WebCore::RenderBox::paintMaskImages):

LayoutTests:

Reviewed by Dean Jackson.

Test -webkit-mask-box-image with large slice sizes, with and
without a transform.

* fast/backgrounds/mask-box-image.html: Added.
* fast/backgrounds/resources/dot.png: Added.
* platform/mac/fast/backgrounds/mask-box-image-expected.png: Added.
* platform/mac/fast/backgrounds/mask-box-image-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/backgrounds/mask-box-image.html [new file with mode: 0644]
LayoutTests/fast/backgrounds/resources/dot.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/backgrounds/mask-box-image-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/backgrounds/mask-box-image-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBox.cpp