Reviewed by Maciej.
authorbdakin <bdakin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Apr 2006 22:35:33 +0000 (22:35 +0000)
committerbdakin <bdakin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Apr 2006 22:35:33 +0000 (22:35 +0000)
commitf4988c3780fc811d0e13a2605e0f26a217e4e282
tree3cba476eb3c318961e8cb32ef4d259c7e30ef43b
parent205acd810f149c99fad039d0ba8fc65c02f3ae24
    Reviewed by Maciej.

        Fix for <rdar://problem/4518632> getComputedStyle returns 'auto'
        for dimensions like 'margin-left'

        * css/CSSComputedStyleDeclaration.cpp:
        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): For
        margin and padding, to match Firefox we now go to the renderer to
        get the property value instead of calling valueForLength() on the
        style attribute. valueForLength() will return the string 'auto' if
        that was what was specified in the CSS, or a percentage if it was
        specified as a percent. But to match Firefox, we always want to
        return a pixel value for margin and padding.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/marginComputedStyle-expected.checksum [new file with mode: 0644]
LayoutTests/fast/css/marginComputedStyle-expected.png [new file with mode: 0644]
LayoutTests/fast/css/marginComputedStyle-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/marginComputedStyle.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/CSSComputedStyleDeclaration.cpp