Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: Source/core/dom/Document.cpp

Issue 19269008: Remove unused Document::getFocusableNodes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/Document.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 3228 matching lines...) Expand 10 before | Expand all | Expand 10 after
3239 if (!focusChangeBlocked) 3239 if (!focusChangeBlocked)
3240 page()->chrome().focusedNodeChanged(m_focusedNode.get()); 3240 page()->chrome().focusedNodeChanged(m_focusedNode.get());
3241 3241
3242 SetFocusedNodeDone: 3242 SetFocusedNodeDone:
3243 updateStyleIfNeeded(); 3243 updateStyleIfNeeded();
3244 if (Frame* frame = this->frame()) 3244 if (Frame* frame = this->frame())
3245 frame->selection()->didChangeFocus(); 3245 frame->selection()->didChangeFocus();
3246 return !focusChangeBlocked; 3246 return !focusChangeBlocked;
3247 } 3247 }
3248 3248
3249 void Document::getFocusableNodes(Vector<RefPtr<Node> >& nodes)
3250 {
3251 updateLayout();
3252
3253 for (Node* node = firstChild(); node; node = NodeTraversal::next(node)) {
3254 if (node->isFocusable())
3255 nodes.append(node);
3256 }
3257 }
3258
3259 void Document::setCSSTarget(Element* n) 3249 void Document::setCSSTarget(Element* n)
3260 { 3250 {
3261 if (m_cssTarget) 3251 if (m_cssTarget)
3262 m_cssTarget->didAffectSelector(AffectedSelectorTarget); 3252 m_cssTarget->didAffectSelector(AffectedSelectorTarget);
3263 m_cssTarget = n; 3253 m_cssTarget = n;
3264 if (n) 3254 if (n)
3265 n->didAffectSelector(AffectedSelectorTarget); 3255 n->didAffectSelector(AffectedSelectorTarget);
3266 } 3256 }
3267 3257
3268 void Document::registerNodeList(LiveNodeListBase* list) 3258 void Document::registerNodeList(LiveNodeListBase* list)
(...skipping 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after
5159 { 5149 {
5160 return DocumentLifecycleNotifier::create(this); 5150 return DocumentLifecycleNotifier::create(this);
5161 } 5151 }
5162 5152
5163 DocumentLifecycleNotifier* Document::lifecycleNotifier() 5153 DocumentLifecycleNotifier* Document::lifecycleNotifier()
5164 { 5154 {
5165 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec ycleNotifier()); 5155 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec ycleNotifier());
5166 } 5156 }
5167 5157
5168 } // namespace WebCore 5158 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698