Changeset 150699 in webkit


Ignore:
Timestamp:
May 25, 2013 7:27:32 PM (11 years ago)
Author:
akling@apple.com
Message:

Remove Document::getFocusableNodes().
<http://webkit.org/b/116773>

Reviewed by Joseph Pecoraro.

Source/WebCore:

This was added in r42191 and there are no remaining clients of the API.

  • dom/Document.cpp:
  • dom/Document.h:
  • WebCore.exp.in:

Source/WebKit/mac:

Remove the private _focusableNodes API on DOMDocument, it has no clients.

  • DOM/WebDOMOperations.mm:
  • DOM/WebDOMOperationsPrivate.h:
Location:
trunk/Source
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r150697 r150699  
     12013-05-25  Andreas Kling  <akling@apple.com>
     2
     3        Remove Document::getFocusableNodes().
     4        <http://webkit.org/b/116773>
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        This was added in r42191 and there are no remaining clients of the API.
     9
     10        * dom/Document.cpp:
     11        * dom/Document.h:
     12        * WebCore.exp.in:
     13
    1142013-05-25  Andreas Kling  <akling@apple.com>
    215
  • trunk/Source/WebCore/WebCore.exp.in

    r150666 r150699  
    10521052__ZN7WebCore8Document16isPageBoxVisibleEi
    10531053__ZN7WebCore8Document16shortcutIconURLsEv
    1054 __ZN7WebCore8Document17getFocusableNodesERN3WTF6VectorINS1_6RefPtrINS_4NodeEEELm0ENS1_15CrashOnOverflowEEE
    10551054__ZN7WebCore8Document20styleResolverChangedENS_23StyleResolverUpdateFlagE
    10561055__ZN7WebCore8Document22createDocumentFragmentEv
  • trunk/Source/WebCore/dom/Document.cpp

    r150695 r150699  
    34603460    return !focusChangeBlocked;
    34613461}
    3462    
    3463 void Document::getFocusableNodes(Vector<RefPtr<Node> >& nodes)
    3464 {
    3465     updateLayout();
    3466 
    3467     for (Node* node = firstChild(); node; node = NodeTraversal::next(node)) {
    3468         if (node->isFocusable())
    3469             nodes.append(node);
    3470     }
    3471 }
    3472  
     3462
    34733463void Document::setCSSTarget(Element* n)
    34743464{
  • trunk/Source/WebCore/dom/Document.h

    r150695 r150699  
    676676    const UserActionElementSet& userActionElements() const { return m_userActionElements; }
    677677
    678     void getFocusableNodes(Vector<RefPtr<Node> >&);
    679    
    680678    // The m_ignoreAutofocus flag specifies whether or not the document has been changed by the user enough
    681679    // for WebCore to ignore the autofocus attribute on any form controls
  • trunk/Source/WebKit/mac/ChangeLog

    r150695 r150699  
     12013-05-25  Andreas Kling  <akling@apple.com>
     2
     3        Remove Document::getFocusableNodes().
     4        <http://webkit.org/b/116773>
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        Remove the private _focusableNodes API on DOMDocument, it has no clients.
     9
     10        * DOM/WebDOMOperations.mm:
     11        * DOM/WebDOMOperationsPrivate.h:
     12
    1132013-05-25  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/Source/WebKit/mac/DOM/WebDOMOperations.mm

    r150261 r150699  
    184184@end
    185185
    186 @implementation DOMDocument (WebDOMDocumentOperationsPrivate)
    187 
    188 - (NSArray *)_focusableNodes
    189 {
    190     Vector<RefPtr<Node> > nodes;
    191     core(self)->getFocusableNodes(nodes);
    192     NSMutableArray *array = [NSMutableArray arrayWithCapacity:nodes.size()];
    193     for (unsigned i = 0; i < nodes.size(); ++i)
    194         [array addObject:kit(nodes[i].get())];
    195     return array;
    196 }
    197 
    198 @end
    199 
    200186@implementation DOMRange (WebDOMRangeOperations)
    201187
  • trunk/Source/WebKit/mac/DOM/WebDOMOperationsPrivate.h

    r144596 r150699  
    3434@end
    3535
    36 @interface DOMDocument (WebDOMDocumentOperationsPrivate)
    37 - (NSArray *)_focusableNodes;
    38 @end
    39 
    4036@interface DOMHTMLInputElement (WebDOMHTMLInputElementOperationsPrivate)
    4137- (void)_setAutofilled:(BOOL)autofilled;
Note: See TracChangeset for help on using the changeset viewer.