WebCore:
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Apr 2008 18:15:06 +0000 (18:15 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Apr 2008 18:15:06 +0000 (18:15 +0000)
commit173b7f916b9cca9ee4cf08fe27fb0d702f51f64f
treea80049102b7bd0ee37d37444b1e61f58924e5618
parent434fe689f8b5cfcc999f1ea45a539e8309f8636f
WebCore:

2008-04-15  Anatoli Papirovski  <apapirovski@mac.com>

        Reviewed by hyatt

        [CSS1, CSS3] Fixed the background-origin calculation for root elements
        (background-size and background-position are affected), r10794
        [CSS3] Fixed the background-size transformation where width is specified in percentage and height is left to auto

        Test: fast/backgrounds/background-origin-root-element.html

        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::calculateBackgroundSize):
        (WebCore::RenderBox::calculateBackgroundImageGeometry):

LayoutTests:

2008-04-15  Anatoli Papirovski  <apapirovski@mac.com>

        Reviewed by hyatt

        Added test case for background-origin calculation on root elements
        (background-repeat and background-size), r10794 [CSS1 + CSS3]

        * fast/backgrounds/background-origin-root-element.html: Added.
        * platform/mac/fast/backgrounds/background-origin-root-element-expected.checksum: Added.
        * platform/mac/fast/backgrounds/background-origin-root-element-expected.png: Added.
        * platform/mac/fast/backgrounds/background-origin-root-element-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@31912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/backgrounds/background-origin-root-element.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/backgrounds/background-origin-root-element-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/backgrounds/background-origin-root-element-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/backgrounds/background-origin-root-element-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/fast/backgrounds/size/backgroundSize18-expected.checksum
LayoutTests/platform/mac/fast/backgrounds/size/backgroundSize18-expected.png
WebCore/ChangeLog
WebCore/rendering/RenderBox.cpp