| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 #include "sky/engine/core/html/imports/HTMLImportsController.h" | 105 #include "sky/engine/core/html/imports/HTMLImportsController.h" |
| 106 #include "sky/engine/core/html/parser/HTMLDocumentParser.h" | 106 #include "sky/engine/core/html/parser/HTMLDocumentParser.h" |
| 107 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" | 107 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" |
| 108 #include "sky/engine/core/html/parser/NestingLevelIncrementer.h" | 108 #include "sky/engine/core/html/parser/NestingLevelIncrementer.h" |
| 109 #include "sky/engine/core/html/parser/TextResourceDecoder.h" | 109 #include "sky/engine/core/html/parser/TextResourceDecoder.h" |
| 110 #include "sky/engine/core/inspector/ConsoleMessage.h" | 110 #include "sky/engine/core/inspector/ConsoleMessage.h" |
| 111 #include "sky/engine/core/inspector/InspectorCounters.h" | 111 #include "sky/engine/core/inspector/InspectorCounters.h" |
| 112 #include "sky/engine/core/inspector/InspectorTraceEvents.h" | 112 #include "sky/engine/core/inspector/InspectorTraceEvents.h" |
| 113 #include "sky/engine/core/loader/FrameLoaderClient.h" | 113 #include "sky/engine/core/loader/FrameLoaderClient.h" |
| 114 #include "sky/engine/core/loader/ImageLoader.h" | 114 #include "sky/engine/core/loader/ImageLoader.h" |
| 115 #include "sky/engine/core/page/Chrome.h" | |
| 116 #include "sky/engine/core/page/ChromeClient.h" | 115 #include "sky/engine/core/page/ChromeClient.h" |
| 117 #include "sky/engine/core/page/EventHandler.h" | 116 #include "sky/engine/core/page/EventHandler.h" |
| 118 #include "sky/engine/core/page/FocusController.h" | 117 #include "sky/engine/core/page/FocusController.h" |
| 119 #include "sky/engine/core/page/Page.h" | 118 #include "sky/engine/core/page/Page.h" |
| 120 #include "sky/engine/core/rendering/HitTestResult.h" | 119 #include "sky/engine/core/rendering/HitTestResult.h" |
| 121 #include "sky/engine/core/rendering/RenderView.h" | 120 #include "sky/engine/core/rendering/RenderView.h" |
| 122 #include "sky/engine/platform/DateComponents.h" | 121 #include "sky/engine/platform/DateComponents.h" |
| 123 #include "sky/engine/platform/EventDispatchForbiddenScope.h" | 122 #include "sky/engine/platform/EventDispatchForbiddenScope.h" |
| 124 #include "sky/engine/platform/Language.h" | 123 #include "sky/engine/platform/Language.h" |
| 125 #include "sky/engine/platform/Logging.h" | 124 #include "sky/engine/platform/Logging.h" |
| (...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 } | 1675 } |
| 1677 } | 1676 } |
| 1678 | 1677 |
| 1679 m_focusedElement->setFocus(true); | 1678 m_focusedElement->setFocus(true); |
| 1680 | 1679 |
| 1681 if (m_focusedElement->isRootEditableElement()) | 1680 if (m_focusedElement->isRootEditableElement()) |
| 1682 frame()->spellChecker().didBeginEditing(m_focusedElement.get()); | 1681 frame()->spellChecker().didBeginEditing(m_focusedElement.get()); |
| 1683 } | 1682 } |
| 1684 | 1683 |
| 1685 if (!focusChangeBlocked && frameHost()) | 1684 if (!focusChangeBlocked && frameHost()) |
| 1686 frameHost()->chrome().focusedNodeChanged(m_focusedElement.get()); | 1685 page()->focusedNodeChanged(m_focusedElement.get()); |
| 1687 | 1686 |
| 1688 SetFocusedElementDone: | 1687 SetFocusedElementDone: |
| 1689 updateRenderTreeIfNeeded(); | 1688 updateRenderTreeIfNeeded(); |
| 1690 if (LocalFrame* frame = this->frame()) | 1689 if (LocalFrame* frame = this->frame()) |
| 1691 frame->selection().didChangeFocus(); | 1690 frame->selection().didChangeFocus(); |
| 1692 return !focusChangeBlocked; | 1691 return !focusChangeBlocked; |
| 1693 } | 1692 } |
| 1694 | 1693 |
| 1695 void Document::updateRangesAfterChildrenChanged(ContainerNode* container) | 1694 void Document::updateRangesAfterChildrenChanged(ContainerNode* container) |
| 1696 { | 1695 { |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2326 using namespace blink; | 2325 using namespace blink; |
| 2327 void showLiveDocumentInstances() | 2326 void showLiveDocumentInstances() |
| 2328 { | 2327 { |
| 2329 WeakDocumentSet& set = liveDocumentSet(); | 2328 WeakDocumentSet& set = liveDocumentSet(); |
| 2330 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 2329 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 2331 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 2330 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 2332 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 2331 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 2333 } | 2332 } |
| 2334 } | 2333 } |
| 2335 #endif | 2334 #endif |
| OLD | NEW |