Changeset 150699 in webkit
- Timestamp:
- May 25, 2013 7:27:32 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150697 r150699 1 2013-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 1 14 2013-05-25 Andreas Kling <akling@apple.com> 2 15 -
trunk/Source/WebCore/WebCore.exp.in
r150666 r150699 1052 1052 __ZN7WebCore8Document16isPageBoxVisibleEi 1053 1053 __ZN7WebCore8Document16shortcutIconURLsEv 1054 __ZN7WebCore8Document17getFocusableNodesERN3WTF6VectorINS1_6RefPtrINS_4NodeEEELm0ENS1_15CrashOnOverflowEEE1055 1054 __ZN7WebCore8Document20styleResolverChangedENS_23StyleResolverUpdateFlagE 1056 1055 __ZN7WebCore8Document22createDocumentFragmentEv -
trunk/Source/WebCore/dom/Document.cpp
r150695 r150699 3460 3460 return !focusChangeBlocked; 3461 3461 } 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 3473 3463 void Document::setCSSTarget(Element* n) 3474 3464 { -
trunk/Source/WebCore/dom/Document.h
r150695 r150699 676 676 const UserActionElementSet& userActionElements() const { return m_userActionElements; } 677 677 678 void getFocusableNodes(Vector<RefPtr<Node> >&);679 680 678 // The m_ignoreAutofocus flag specifies whether or not the document has been changed by the user enough 681 679 // for WebCore to ignore the autofocus attribute on any form controls -
trunk/Source/WebKit/mac/ChangeLog
r150695 r150699 1 2013-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 1 13 2013-05-25 Simon Fraser <simon.fraser@apple.com> 2 14 -
trunk/Source/WebKit/mac/DOM/WebDOMOperations.mm
r150261 r150699 184 184 @end 185 185 186 @implementation DOMDocument (WebDOMDocumentOperationsPrivate)187 188 - (NSArray *)_focusableNodes189 {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 @end199 200 186 @implementation DOMRange (WebDOMRangeOperations) 201 187 -
trunk/Source/WebKit/mac/DOM/WebDOMOperationsPrivate.h
r144596 r150699 34 34 @end 35 35 36 @interface DOMDocument (WebDOMDocumentOperationsPrivate)37 - (NSArray *)_focusableNodes;38 @end39 40 36 @interface DOMHTMLInputElement (WebDOMHTMLInputElementOperationsPrivate) 41 37 - (void)_setAutofilled:(BOOL)autofilled;
Note: See TracChangeset
for help on using the changeset viewer.