Reviewed by Dave Hyatt.

        <rdar://problem/4234658> SUTiDenver8F17: Dragging in this HTML example crashes Safari

        Problem is KWQKHTMLPart::snapshotDragImage() leaves the layout needing updating, that
        layout gets triggered (in this case) by the foreground draw in the RenderLayer code,
        thereby deleting the RenderLayer itself.   Simple fix is for snapshotDragImage() to
        updateLayout() after resetting the drag state.

        Test cases added:
        * manual-tests/drag_with_opacity.html: Added.

        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::snapshotDragImage):  Call updateLayout() after resetting the drag state


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10420 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3 files changed