OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nuanti Ltd. | 3 * Copyright (C) 2008 Nuanti Ltd. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "config.h" | 27 #include "config.h" |
28 #include "core/page/FocusController.h" | 28 #include "core/page/FocusController.h" |
29 | 29 |
30 #include <limits> | 30 #include <limits> |
31 #include "HTMLNames.h" | 31 #include "HTMLNames.h" |
32 #include "core/accessibility/AXObjectCache.h" | 32 #include "core/accessibility/AXObjectCache.h" |
33 #include "core/dom/Document.h" | 33 #include "core/dom/Document.h" |
34 #include "core/dom/Element.h" | 34 #include "core/dom/Element.h" |
35 #include "core/dom/Event.h" | 35 #include "core/dom/Event.h" |
36 #include "core/dom/EventNames.h" | 36 #include "core/dom/EventNames.h" |
37 #include "core/dom/ExceptionCode.h" | |
38 #include "core/dom/KeyboardEvent.h" | |
39 #include "core/dom/NodeRenderingTraversal.h" | 37 #include "core/dom/NodeRenderingTraversal.h" |
40 #include "core/dom/NodeTraversal.h" | 38 #include "core/dom/NodeTraversal.h" |
41 #include "core/dom/Range.h" | 39 #include "core/dom/Range.h" |
42 #include "core/dom/shadow/ElementShadow.h" | 40 #include "core/dom/shadow/ElementShadow.h" |
43 #include "core/dom/shadow/ShadowRoot.h" | 41 #include "core/dom/shadow/ShadowRoot.h" |
44 #include "core/editing/Editor.h" | 42 #include "core/editing/Editor.h" |
45 #include "core/editing/FrameSelection.h" | 43 #include "core/editing/FrameSelection.h" |
46 #include "core/editing/htmlediting.h" // For firstPositionInOrBeforeNode | 44 #include "core/editing/htmlediting.h" // For firstPositionInOrBeforeNode |
47 #include "core/html/HTMLAreaElement.h" | 45 #include "core/html/HTMLAreaElement.h" |
48 #include "core/html/HTMLImageElement.h" | 46 #include "core/html/HTMLImageElement.h" |
49 #include "core/page/Chrome.h" | 47 #include "core/page/Chrome.h" |
50 #include "core/page/EditorClient.h" | 48 #include "core/page/EditorClient.h" |
51 #include "core/page/EventHandler.h" | 49 #include "core/page/EventHandler.h" |
52 #include "core/page/Frame.h" | 50 #include "core/page/Frame.h" |
53 #include "core/page/FrameTree.h" | 51 #include "core/page/FrameTree.h" |
54 #include "core/page/FrameView.h" | 52 #include "core/page/FrameView.h" |
55 #include "core/page/Page.h" | 53 #include "core/page/Page.h" |
56 #include "core/page/Settings.h" | 54 #include "core/page/Settings.h" |
57 #include "core/page/SpatialNavigation.h" | 55 #include "core/page/SpatialNavigation.h" |
58 #include "core/platform/ScrollAnimator.h" | |
59 #include "core/platform/Widget.h" | |
60 #include "core/rendering/HitTestResult.h" | 56 #include "core/rendering/HitTestResult.h" |
61 #include "core/rendering/RenderObject.h" | |
62 #include "core/rendering/RenderWidget.h" | |
63 | 57 |
64 namespace WebCore { | 58 namespace WebCore { |
65 | 59 |
66 using namespace HTMLNames; | 60 using namespace HTMLNames; |
67 using namespace std; | 61 using namespace std; |
68 | 62 |
69 FocusNavigationScope::FocusNavigationScope(TreeScope* treeScope) | 63 FocusNavigationScope::FocusNavigationScope(TreeScope* treeScope) |
70 : m_rootTreeScope(treeScope) | 64 : m_rootTreeScope(treeScope) |
71 { | 65 { |
72 ASSERT(treeScope); | 66 ASSERT(treeScope); |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 startingRect = nodeRectInAbsoluteCoordinates(container, true /* ignore b
order */); | 863 startingRect = nodeRectInAbsoluteCoordinates(container, true /* ignore b
order */); |
870 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(direct
ion, container); | 864 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(direct
ion, container); |
871 if (container && container->isDocumentNode()) | 865 if (container && container->isDocumentNode()) |
872 toDocument(container)->updateLayoutIgnorePendingStylesheets(); | 866 toDocument(container)->updateLayoutIgnorePendingStylesheets(); |
873 } while (!consumed && container); | 867 } while (!consumed && container); |
874 | 868 |
875 return consumed; | 869 return consumed; |
876 } | 870 } |
877 | 871 |
878 } // namespace WebCore | 872 } // namespace WebCore |
OLD | NEW |