Reviewed by Chris Blumenberg.
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jul 2005 18:02:21 +0000 (18:02 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jul 2005 18:02:21 +0000 (18:02 +0000)
commitba66526828f2a4f80f2bb99d9b8131b1c53bd4ea
tree8debc0d1b188ed8e8bcad734a52aaf195e12e9a7
parent4fee21d3fa063f9cfabe523d324706e00b623cdc
    Reviewed by Chris Blumenberg.

        - some refactoring cleanup in the selection/searching code

        * Misc.subproj/WebSearchableTextView.h:
        moved WebDocumentSelection protocol conformation to this class, was in subclass WebTextView
        * Misc.subproj/WebSearchableTextView.m:
        (-[WebSearchableTextView selectionRect]):
        new method (moved here from Safari) to return a single rect encompassing all selected text
        (-[WebSearchableTextView pasteboardTypesForSelection]):
        moved here from WebTextView
        (-[WebSearchableTextView writeSelectionWithPasteboardTypes:toPasteboard:]):
        ditto

        * WebView.subproj/WebDocumentInternal.h:
        moved WebDocumentSelection protocol out of here

        * WebView.subproj/WebDocumentPrivate.h:
        moved WebDocumentSelection protocol into here, added selectionRect method

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView selectionRect]):
        new method, calls existing bridge method formerly called by _selectionRect
        (-[WebHTMLView _selectionRect]):
        now calls [self selectionRect]. We can't just delete _selectionRect because it's used by Mail.

        * WebView.subproj/WebHTMLViewPrivate.h:
        removed _selectionRect since it's in WebDocumentSelection now

        * WebView.subproj/WebTextView.h:
        removed WebDocumentSelection from protocol list since it's in superclass now

        * WebView.subproj/WebTextView.m:
        removed old WebDocumentSelection methods because they are in superclass now

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9820 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/ChangeLog
WebKit/Misc.subproj/WebSearchableTextView.h
WebKit/Misc.subproj/WebSearchableTextView.m
WebKit/WebView.subproj/WebDocumentInternal.h
WebKit/WebView.subproj/WebDocumentPrivate.h
WebKit/WebView.subproj/WebHTMLView.m
WebKit/WebView.subproj/WebHTMLViewPrivate.h
WebKit/WebView.subproj/WebTextView.h
WebKit/WebView.subproj/WebTextView.m