LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Jun 2006 22:26:22 +0000 (22:26 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Jun 2006 22:26:22 +0000 (22:26 +0000)
commit91fc3cb47b3b41798050088e796e27f703cfa17c
tree63d5abfb20aa16b938ac4bf329fbbc237d801a7d
parentffa1c905f71026ee715cb2b21e85aee8110c691c
LayoutTests:

        Reviewed by levi

        <rdar://problem/4599735> Clicking out of a table at the extremes of an editable document doesn't appear to work

        Added:
        * editing/selection/click-before-and-after-table-expected.txt: Added.
        * editing/selection/click-before-and-after-table.html: Added.
        Updated to reflect fix:
        * editing/selection/move-by-line-001-expected.checksum:
        * editing/selection/move-by-line-001-expected.png:

WebCore:

        Reviewed by levi

        <rdar://problem/4599735> Clicking out of a table at the extremes of an editable document doesn't appear to work

        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::positionForCoordinates): In the fall through case,
        where we can't find a child block that contains (x, y), pass to RenderFlow
        instead of the last visible child block.
        * rendering/RenderContainer.cpp:
        (WebCore::RenderContainer::positionForCoordinates): Don't pass to the closest
        child renderer if this is a table and (x, y) is outside the table.  Return
        a VisiblePosition before or after the table.
        Fixed the code that finds the closest child renderer.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/selection/click-before-and-after-table-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/click-before-and-after-table.html [new file with mode: 0644]
LayoutTests/editing/selection/move-by-line-001-expected.checksum
LayoutTests/editing/selection/move-by-line-001-expected.png
WebCore/ChangeLog
WebCore/rendering/RenderBlock.cpp
WebCore/rendering/RenderContainer.cpp