| 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 4273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4284 focus_change_blocked = true; | 4284 focus_change_blocked = true; |
| 4285 goto SetFocusedElementDone; | 4285 goto SetFocusedElementDone; |
| 4286 } | 4286 } |
| 4287 } | 4287 } |
| 4288 | 4288 |
| 4289 if (IsRootEditableElement(*focused_element_)) | 4289 if (IsRootEditableElement(*focused_element_)) |
| 4290 GetFrame()->GetSpellChecker().DidBeginEditing(focused_element_.Get()); | 4290 GetFrame()->GetSpellChecker().DidBeginEditing(focused_element_.Get()); |
| 4291 } | 4291 } |
| 4292 | 4292 |
| 4293 if (!focus_change_blocked && focused_element_) { | 4293 if (!focus_change_blocked && focused_element_) { |
| 4294 // Create the AXObjectImpl cache in a focus change because Chromium relies | 4294 // Create the AXObject cache in a focus change because Chromium relies on |
| 4295 // on it. | 4295 // it. |
| 4296 if (AXObjectCache* cache = AxObjectCache()) | 4296 if (AXObjectCache* cache = AxObjectCache()) |
| 4297 cache->HandleFocusedUIElementChanged(old_focused_element, | 4297 cache->HandleFocusedUIElementChanged(old_focused_element, |
| 4298 new_focused_element); | 4298 new_focused_element); |
| 4299 } | 4299 } |
| 4300 | 4300 |
| 4301 if (!focus_change_blocked && GetPage()) { | 4301 if (!focus_change_blocked && GetPage()) { |
| 4302 GetPage()->GetChromeClient().FocusedNodeChanged(old_focused_element, | 4302 GetPage()->GetChromeClient().FocusedNodeChanged(old_focused_element, |
| 4303 focused_element_.Get()); | 4303 focused_element_.Get()); |
| 4304 } | 4304 } |
| 4305 | 4305 |
| (...skipping 2508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6814 } | 6814 } |
| 6815 | 6815 |
| 6816 void showLiveDocumentInstances() { | 6816 void showLiveDocumentInstances() { |
| 6817 WeakDocumentSet& set = liveDocumentSet(); | 6817 WeakDocumentSet& set = liveDocumentSet(); |
| 6818 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6818 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6819 for (blink::Document* document : set) | 6819 for (blink::Document* document : set) |
| 6820 fprintf(stderr, "- Document %p URL: %s\n", document, | 6820 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6821 document->Url().GetString().Utf8().data()); | 6821 document->Url().GetString().Utf8().data()); |
| 6822 } | 6822 } |
| 6823 #endif | 6823 #endif |
| OLD | NEW |