| 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 10 matching lines...) Expand all Loading... |
| 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 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 "HTMLAreaElement.h" | |
| 32 #include "HTMLImageElement.h" | |
| 33 #include "HTMLNames.h" | 31 #include "HTMLNames.h" |
| 34 #include "core/accessibility/AXObjectCache.h" | 32 #include "core/accessibility/AXObjectCache.h" |
| 35 #include "core/dom/Document.h" | 33 #include "core/dom/Document.h" |
| 36 #include "core/dom/Element.h" | 34 #include "core/dom/Element.h" |
| 37 #include "core/dom/ElementShadow.h" | 35 #include "core/dom/ElementShadow.h" |
| 38 #include "core/dom/Event.h" | 36 #include "core/dom/Event.h" |
| 39 #include "core/dom/EventNames.h" | 37 #include "core/dom/EventNames.h" |
| 40 #include "core/dom/ExceptionCode.h" | 38 #include "core/dom/ExceptionCode.h" |
| 41 #include "core/dom/KeyboardEvent.h" | 39 #include "core/dom/KeyboardEvent.h" |
| 42 #include "core/dom/NodeRenderingTraversal.h" | 40 #include "core/dom/NodeRenderingTraversal.h" |
| 43 #include "core/dom/NodeTraversal.h" | 41 #include "core/dom/NodeTraversal.h" |
| 44 #include "core/dom/Range.h" | 42 #include "core/dom/Range.h" |
| 45 #include "core/dom/ShadowRoot.h" | 43 #include "core/dom/ShadowRoot.h" |
| 46 #include "core/editing/Editor.h" | 44 #include "core/editing/Editor.h" |
| 47 #include "core/editing/FrameSelection.h" | 45 #include "core/editing/FrameSelection.h" |
| 48 #include "core/editing/htmlediting.h" // For firstPositionInOrBeforeNode | 46 #include "core/editing/htmlediting.h" // For firstPositionInOrBeforeNode |
| 47 #include "core/html/HTMLAreaElement.h" |
| 48 #include "core/html/HTMLImageElement.h" |
| 49 #include "core/page/Chrome.h" | 49 #include "core/page/Chrome.h" |
| 50 #include "core/page/EditorClient.h" | 50 #include "core/page/EditorClient.h" |
| 51 #include "core/page/EventHandler.h" | 51 #include "core/page/EventHandler.h" |
| 52 #include "core/page/Frame.h" | 52 #include "core/page/Frame.h" |
| 53 #include "core/page/FrameTree.h" | 53 #include "core/page/FrameTree.h" |
| 54 #include "core/page/FrameView.h" | 54 #include "core/page/FrameView.h" |
| 55 #include "core/page/Page.h" | 55 #include "core/page/Page.h" |
| 56 #include "core/page/Settings.h" | 56 #include "core/page/Settings.h" |
| 57 #include "core/page/SpatialNavigation.h" | 57 #include "core/page/SpatialNavigation.h" |
| 58 #include "core/platform/ScrollAnimator.h" | 58 #include "core/platform/ScrollAnimator.h" |
| (...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 startingRect = nodeRectInAbsoluteCoordinates(container, true /* ignore b
order */); | 871 startingRect = nodeRectInAbsoluteCoordinates(container, true /* ignore b
order */); |
| 872 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(direct
ion, container); | 872 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(direct
ion, container); |
| 873 if (container && container->isDocumentNode()) | 873 if (container && container->isDocumentNode()) |
| 874 toDocument(container)->updateLayoutIgnorePendingStylesheets(); | 874 toDocument(container)->updateLayoutIgnorePendingStylesheets(); |
| 875 } while (!consumed && container); | 875 } while (!consumed && container); |
| 876 | 876 |
| 877 return consumed; | 877 return consumed; |
| 878 } | 878 } |
| 879 | 879 |
| 880 } // namespace WebCore | 880 } // namespace WebCore |
| OLD | NEW |