2007-05-06 Mitz Pettel <mitz@webkit.org>
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 6 May 2007 16:42:10 +0000 (16:42 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 6 May 2007 16:42:10 +0000 (16:42 +0000)
commit6c60bacfaa47207817476a7ff4d3b555a1bf53f2
treebe9f4fa622b753f782d737edce695c46a171b303
parent9b457bde48a3c6aefdf0344de24248b0ce0a9d78
2007-05-06  Mitz Pettel  <mitz@webkit.org>

        Reviewed by Hyatt.

        - fix http://bugs.webkit.org/show_bug.cgi?id=13557
          Crash when dragging selection over absolutely positioned generated content on block element

        Test: fast/css-generated-content/positioned-background-hit-test-crash.html

        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::enclosingElement): Added. Factored out of hitTestLayer().
        (WebCore::RenderLayer::hitTestLayer): Implemented the fix for <rdar://problem/3552346>
        from r6106 to the self hit test as well, namely: return the enclosing element
        for generated positioned content.
        * rendering/RenderLayer.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css-generated-content/positioned-background-hit-test-crash-expected.checksum [new file with mode: 0644]
LayoutTests/fast/css-generated-content/positioned-background-hit-test-crash-expected.png [new file with mode: 0644]
LayoutTests/fast/css-generated-content/positioned-background-hit-test-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/css-generated-content/positioned-background-hit-test-crash.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderLayer.cpp
WebCore/rendering/RenderLayer.h