WebCore:
authorbdakin <bdakin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Nov 2006 03:22:12 +0000 (03:22 +0000)
committerbdakin <bdakin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Nov 2006 03:22:12 +0000 (03:22 +0000)
commit805d587e44c54bf105d8a207e1e9543969adb835
tree0c589b621813d0be7f6a05ff7cf255e2936a1778
parentf1f0f9a016ec68072e27a1f2ea3548dd916fd60a
WebCore:
        Reviewed by Maciej.

        This adds the back-end of the remaining WebElementDictionary
        functions into HitTestResult.

        * WebCore.exp:
        * rendering/HitTestResult.cpp:
        (WebCore::HitTestResult::title):
        (WebCore::displayString): This is nearly identical to the
        displayString() defined in DOMInternal.mm except that it returns a
        String instead of an NSString. The old code path used the
        DOMInternal method, so I made a new one here for the new code path.
        (WebCore::HitTestResult::altDisplayString):
        (WebCore::HitTestResult::image):
        (WebCore::HitTestResult::absoluteImageURL):
        (WebCore::HitTestResult::absoluteLinkURL):
        (WebCore::HitTestResult::titleDisplayString):
        (WebCore::HitTestResult::textContent):
        * rendering/HitTestResult.h:

WebKit:
        Reviewed by Maciej.

        This creates local functions for the remaining WebElementDictionary
        members that calls into HitTestResult instead of doing magical
        things with the Objective-C DOM classes.

        * ChangeLog:
        * Misc/WebElementDictionary.m:
        (addLookupKey): The values of the dictionary are now just
        selectors. They used to be WebElementMethods which were
        WebElementTargetObjects associated with selectors, but none of that
        is needed any more.
        (+[WebElementDictionary initializeLookupTable]): All selectors are
        now local functions, no more WebElementTargetObjects.
        (-[WebElementDictionary objectForKey:]): No more target objects!
        (-[WebElementDictionary _domNode]): Call into HitTestResult member
        variable.
        (-[WebElementDictionary _altDisplayString]): Same.
        (-[WebElementDictionary _image]): Same.
        (-[WebElementDictionary _absoluteImageURL]): Same.
        (-[WebElementDictionary _title]): Same.
        (-[WebElementDictionary _absoluteLinkURL]): Same.
        (-[WebElementDictionary _targetWebFrame]): Same.
        (-[WebElementDictionary _titleDisplayString]): Same.
        (-[WebElementDictionary _textContent]): Same.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17511 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/WebCore.exp
WebCore/rendering/HitTestResult.cpp
WebCore/rendering/HitTestResult.h
WebKit/ChangeLog
WebKit/Misc/WebElementDictionary.m