-webkit-cross-fade doesn't respect background-size
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Jan 2012 19:02:39 +0000 (19:02 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Jan 2012 19:02:39 +0000 (19:02 +0000)
commit910d2b60c5bafe3f353940ba02befba73d418f2f
treede3d71710c88ffeeffbb521d56e5a73fd6a3eeff
parent5ee74d0ef4c4cc6a3ea81f423bbd3a4e2c48a04a
-webkit-cross-fade doesn't respect background-size
https://bugs.webkit.org/show_bug.cgi?id=74902
<rdar://problem/10605289>

Reviewed by Simon Fraser.

CrossfadeGeneratedImage should report its intrinsic size, instead of
improperly conforming to the size of its container.

Test: css3/images/cross-fade-background-size.html

* platform/graphics/CrossfadeGeneratedImage.h:
(WebCore::CrossfadeGeneratedImage::setContainerSize):
(WebCore::CrossfadeGeneratedImage::usesContainerSize):
(WebCore::CrossfadeGeneratedImage::hasRelativeWidth):
(WebCore::CrossfadeGeneratedImage::hasRelativeHeight):
(WebCore::CrossfadeGeneratedImage::size):

Add a test (cross-fade-background-size.html) which ensures that the
background-size CSS property interacts reasonably with -webkit-cross-fade.

Modify cross-fade-overflow-position to hit both the tiled and non-tiled codepaths.

* css3/images/cross-fade-background-size.html: Added.
* css3/images/cross-fade-overflow-position.html:
* css3/images/resources/stripes-large.png: Added.
* css3/images/resources/stripes-small.png: Added.
* platform/mac/css3/images/cross-fade-background-size-expected.png: Added.
* platform/mac/css3/images/cross-fade-background-size-expected.txt: Added.
* platform/mac/css3/images/cross-fade-overflow-position-expected.png:
* platform/mac/css3/images/cross-fade-overflow-position-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/css3/images/cross-fade-background-size.html [new file with mode: 0644]
LayoutTests/css3/images/cross-fade-overflow-position.html
LayoutTests/css3/images/resources/stripes-large.png [new file with mode: 0644]
LayoutTests/css3/images/resources/stripes-small.png [new file with mode: 0644]
LayoutTests/platform/mac/css3/images/cross-fade-background-size-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/css3/images/cross-fade-background-size-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css3/images/cross-fade-overflow-position-expected.png
LayoutTests/platform/mac/css3/images/cross-fade-overflow-position-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/CrossfadeGeneratedImage.h