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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
(...skipping 4065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4076 m_focusedElement.get()); | 4076 m_focusedElement.get()); |
4077 | 4077 |
4078 SetFocusedElementDone: | 4078 SetFocusedElementDone: |
4079 updateStyleAndLayoutTree(); | 4079 updateStyleAndLayoutTree(); |
4080 if (LocalFrame* frame = this->frame()) | 4080 if (LocalFrame* frame = this->frame()) |
4081 frame->selection().didChangeFocus(); | 4081 frame->selection().didChangeFocus(); |
4082 return !focusChangeBlocked; | 4082 return !focusChangeBlocked; |
4083 } | 4083 } |
4084 | 4084 |
4085 void Document::clearFocusedElement() { | 4085 void Document::clearFocusedElement() { |
4086 setFocusedElement(nullptr, FocusParams(SelectionBehaviorOnFocus::None, | 4086 setFocusedElement( |
4087 WebFocusTypeNone, nullptr)); | 4087 nullptr, FocusParams(SelectionBehaviorOnFocus::None, WebFocusTypeNone, |
| 4088 InputDeviceCapabilities::Null)); |
4088 } | 4089 } |
4089 | 4090 |
4090 void Document::setSequentialFocusNavigationStartingPoint(Node* node) { | 4091 void Document::setSequentialFocusNavigationStartingPoint(Node* node) { |
4091 if (!m_frame) | 4092 if (!m_frame) |
4092 return; | 4093 return; |
4093 if (!node) { | 4094 if (!node) { |
4094 m_sequentialFocusNavigationStartingPoint = nullptr; | 4095 m_sequentialFocusNavigationStartingPoint = nullptr; |
4095 return; | 4096 return; |
4096 } | 4097 } |
4097 DCHECK_EQ(node->document(), this); | 4098 DCHECK_EQ(node->document(), this); |
(...skipping 2482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6580 } | 6581 } |
6581 | 6582 |
6582 void showLiveDocumentInstances() { | 6583 void showLiveDocumentInstances() { |
6583 WeakDocumentSet& set = liveDocumentSet(); | 6584 WeakDocumentSet& set = liveDocumentSet(); |
6584 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6585 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6585 for (blink::Document* document : set) | 6586 for (blink::Document* document : set) |
6586 fprintf(stderr, "- Document %p URL: %s\n", document, | 6587 fprintf(stderr, "- Document %p URL: %s\n", document, |
6587 document->url().getString().utf8().data()); | 6588 document->url().getString().utf8().data()); |
6588 } | 6589 } |
6589 #endif | 6590 #endif |
OLD | NEW |