LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Jul 2006 00:37:55 +0000 (00:37 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Jul 2006 00:37:55 +0000 (00:37 +0000)
commit7ee3380125fd8e9d057ef5d49f345422646c38e4
tree41d574f784651bcef24edb129bd2c01136f340ef
parent65aafacb8b3f142b4e03539f6b50951c5c0aafca
LayoutTests:

        Reviewed by John Sullivan (new test, not the changes to existing ones).

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9943
          <rdar://problem/4590613>
          REGRESSION (Tiger-TOT): menus are offset to the right at http://movies.aol.com/movie-photo-bts/superman-returns

        * fast/html/body-offset-properties-expected.txt: Added.
        * fast/html/body-offset-properties.html: Added.

        * editing/execCommand/findString-2.html: Update to not depend on the buggy body.offseLeft/Top.
        Instead hardcode the default body margin of 8.
        * editing/pasteboard/drop-text-without-selection.html: Ditto.
        * editing/selection/click-before-and-after-table.html: Ditto.
        * editing/selection/mixed-editability-1.html: Ditto.
        * fast/table/click-near-anonymous-table.html: Ditto.

        * editing/selection/drag-to-contenteditable-iframe.html: Remove unnecessary use of body.offsetLeft/Top
        that are always 0.

WebCore:

        Reviewed by John Sullivan.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9943
          <rdar://problem/4590613>
          REGRESSION (Tiger-TOT): menus are offset to the right at http://movies.aol.com/movie-photo-bts/superman-returns

        The problem turns out to be the fact that body.offsetLeft is returning a non-zero value.
        I have no idea why the menus worked in Tiger Safari, because body.offsetLeft behavior has not changed.
        Presumably some other bug that we fixed had been compensating.

        Test: fast/html/body-offset-properties.html

        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::offsetLeft): Always return 0 for any object without an offsetParent.
        (WebCore::RenderObject::offsetTop): Ditto.
        (WebCore::RenderObject::offsetParent): Return 0 for the body (treat as a special case).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/execCommand/findString-2.html
LayoutTests/editing/pasteboard/drop-text-without-selection.html
LayoutTests/editing/selection/click-before-and-after-table.html
LayoutTests/editing/selection/drag-to-contenteditable-iframe.html
LayoutTests/editing/selection/mixed-editability-1.html
LayoutTests/fast/html/body-offset-properties-expected.txt [new file with mode: 0644]
LayoutTests/fast/html/body-offset-properties.html [new file with mode: 0644]
LayoutTests/fast/table/click-near-anonymous-table.html
WebCore/ChangeLog
WebCore/rendering/RenderObject.cpp