OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |