Skip to content
  • ap's avatar
    Reviewed by Darin. · c548c22a
    ap authored
            - http://bugzilla.opendarwin.org/show_bug.cgi?id=8177
            Javascript search incredibly slow
    
            No change in functionality, thus no test.
    
            Use info sharing for named collections, too. Moved shared HTMLCollection infos from HTMLDocument 
            to Document.  Renamed collection types to use the preferred WebKit style. Replaced direct
            HTMLCollection creation with using accessors from Document in a few places.
    
            * bindings/objc/DOMHTML.mm:
            (-[DOMHTMLElement children]):
            (-[DOMHTMLDocument images]):
            (-[DOMHTMLDocument applets]):
            (-[DOMHTMLDocument links]):
            (-[DOMHTMLDocument forms]):
            (-[DOMHTMLDocument anchors]):
            (-[DOMHTMLMapElement areas]):
            (-[DOMHTMLTableSectionElement rows]):
            (-[DOMHTMLTableElement rows]):
            (-[DOMHTMLTableElement tBodies]):
            (-[DOMHTMLTableRowElement cells]):
            * dom/Document.cpp:
            (WebCore::Document::images):
            (WebCore::Document::applets):
            (WebCore::Document::embeds):
            (WebCore::Document::objects):
            (WebCore::Document::scripts):
            (WebCore::Document::links):
            (WebCore::Document::forms):
            (WebCore::Document::anchors):
            (WebCore::Document::all):
            (WebCore::Document::windowNamedItems):
            (WebCore::Document::documentNamedItems):
            (WebCore::Document::nameCollectionInfo):
            * dom/Document.h:
            (WebCore::Document::collectionInfo):
            * html/HTMLCollection.cpp:
            (WebCore::HTMLCollection::HTMLCollection):
            (WebCore::HTMLCollection::traverseNextItem):
            (WebCore::HTMLCollection::checkForNameMatch):
            (WebCore::HTMLCollection::updateNameCache):
            * html/HTMLCollection.h:
            (WebCore::HTMLCollection::):
            * html/HTMLDocument.h:
            * html/HTMLElement.cpp:
            (WebCore::HTMLElement::children):
            * html/HTMLMapElement.cpp:
            (WebCore::HTMLMapElement::areas):
            * html/HTMLNameCollection.h:
            * html/HTMLNameCollection.cpp:
            (WebCore::HTMLNameCollection::HTMLNameCollection):
            (WebCore::HTMLNameCollection::traverseNextItem):
            * html/HTMLFormCollection.cpp:
            * html/HTMLOptionsCollection.cpp:
            (WebCore::HTMLOptionsCollection::HTMLOptionsCollection):
            * html/HTMLSelectElement.h:
            (WebCore::HTMLSelectElement::collectionInfo):
            * html/HTMLTableElement.cpp:
            (WebCore::HTMLTableElement::rows):
            (WebCore::HTMLTableElement::tBodies):
            * html/HTMLTableRowElement.cpp:
            (WebCore::HTMLTableRowElement::cells):
            * html/HTMLTableSectionElement.cpp:
            (WebCore::HTMLTableSectionElement::rows):
            * kwq/WebCoreAXObject.mm:
            (-[WebCoreAXObject accessibilityAttributeValue:]):
            * page/Frame.cpp:
            (WebCore::Frame::gotoAnchor):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15006 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c548c22a