WebCore:
authorlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Feb 2009 01:28:46 +0000 (01:28 +0000)
committerlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Feb 2009 01:28:46 +0000 (01:28 +0000)
commit7ec78eccb6cb79338d8b76a6ac8adb8d89ce99fd
tree905c2bd07e64cffe4f8f9f231f1afe83830e1d16
parentdb188bc40880429f7c52c00991dae1d36c7fb67e
WebCore:

2009-02-27  Matt Pennig  <pennig@apple.com>

        Reviewed by David Hyatt.

        Resolves: https://bugs.webkit.org/show_bug.cgi?id=24107
        "Fixed elements have 0 as an offsetLeft property"

        Code also brings offsetLeft/Top in full conformance with the spec.
        Added two tests, one for fixed-position elements, and one for <html>.

        Tests: fast/dom/Element/fixed-position-offset-parent.html
               fast/dom/Element/offsetLeft-offsetTop-html.html

        * rendering/RenderBoxModelObject.cpp:
        (WebCore::RenderBoxModelObject::offsetLeft):
        (WebCore::RenderBoxModelObject::offsetTop):

LayoutTests:

2009-02-27  Matt Pennig  <pennig@apple.com>

        Reviewed by David Hyatt.

        Added two tests:
            1. Tests offsetParent, offsetLeft and offsetTop on fixed-position elements.
            2. Tests offsetLeft and offsetTop on static and positioned <html> elements.

        * fast/dom/Element/fixed-position-offset-parent-expected.txt: Added.
        * fast/dom/Element/fixed-position-offset-parent.html: Added.
        * fast/dom/Element/offsetLeft-offsetTop-html-expected.txt: Added.
        * fast/dom/Element/offsetLeft-offsetTop-html.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/Element/fixed-position-offset-parent-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Element/fixed-position-offset-parent.html [new file with mode: 0644]
LayoutTests/fast/dom/Element/offsetLeft-offsetTop-html-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Element/offsetLeft-offsetTop-html.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderBoxModelObject.cpp