| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #include "core/accessibility/AccessibilityRenderObject.h" | 30 #include "core/accessibility/AccessibilityRenderObject.h" |
| 31 | 31 |
| 32 #include "HTMLFormElement.h" | |
| 33 #include "HTMLImageElement.h" | |
| 34 #include "HTMLLabelElement.h" | |
| 35 #include "HTMLOptionElement.h" | |
| 36 #include "HTMLSelectElement.h" | |
| 37 #include "HTMLTextAreaElement.h" | |
| 38 #include "core/accessibility/AXObjectCache.h" | 32 #include "core/accessibility/AXObjectCache.h" |
| 39 #include "core/accessibility/AccessibilityImageMapLink.h" | 33 #include "core/accessibility/AccessibilityImageMapLink.h" |
| 40 #include "core/accessibility/AccessibilitySVGRoot.h" | 34 #include "core/accessibility/AccessibilitySVGRoot.h" |
| 41 #include "core/accessibility/AccessibilitySpinButton.h" | 35 #include "core/accessibility/AccessibilitySpinButton.h" |
| 42 #include "core/accessibility/AccessibilityTable.h" | 36 #include "core/accessibility/AccessibilityTable.h" |
| 43 #include "core/dom/NodeTraversal.h" | 37 #include "core/dom/NodeTraversal.h" |
| 44 #include "core/editing/FrameSelection.h" | 38 #include "core/editing/FrameSelection.h" |
| 45 #include "core/editing/RenderedPosition.h" | 39 #include "core/editing/RenderedPosition.h" |
| 46 #include "core/editing/VisibleUnits.h" | 40 #include "core/editing/VisibleUnits.h" |
| 47 #include "core/editing/htmlediting.h" | 41 #include "core/editing/htmlediting.h" |
| 42 #include "core/html/HTMLFormElement.h" |
| 43 #include "core/html/HTMLImageElement.h" |
| 44 #include "core/html/HTMLLabelElement.h" |
| 45 #include "core/html/HTMLOptionElement.h" |
| 46 #include "core/html/HTMLSelectElement.h" |
| 47 #include "core/html/HTMLTextAreaElement.h" |
| 48 #include "core/loader/ProgressTracker.h" | 48 #include "core/loader/ProgressTracker.h" |
| 49 #include "core/page/Page.h" | 49 #include "core/page/Page.h" |
| 50 #include "core/platform/LocalizedStrings.h" | 50 #include "core/platform/LocalizedStrings.h" |
| 51 #include "core/rendering/HitTestResult.h" | 51 #include "core/rendering/HitTestResult.h" |
| 52 #include "core/rendering/RenderFieldset.h" | 52 #include "core/rendering/RenderFieldset.h" |
| 53 #include "core/rendering/RenderFileUploadControl.h" | 53 #include "core/rendering/RenderFileUploadControl.h" |
| 54 #include "core/rendering/RenderHTMLCanvas.h" | 54 #include "core/rendering/RenderHTMLCanvas.h" |
| 55 #include "core/rendering/RenderImage.h" | 55 #include "core/rendering/RenderImage.h" |
| 56 #include "core/rendering/RenderInline.h" | 56 #include "core/rendering/RenderInline.h" |
| 57 #include "core/rendering/RenderLayer.h" | 57 #include "core/rendering/RenderLayer.h" |
| (...skipping 2991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3049 | 3049 |
| 3050 RenderBox* box = toRenderBox(m_renderer); | 3050 RenderBox* box = toRenderBox(m_renderer); |
| 3051 if (!box->canBeScrolledAndHasScrollableArea()) | 3051 if (!box->canBeScrolledAndHasScrollableArea()) |
| 3052 return; | 3052 return; |
| 3053 | 3053 |
| 3054 RenderLayer* layer = box->layer(); | 3054 RenderLayer* layer = box->layer(); |
| 3055 layer->scrollToOffset(toIntSize(point), RenderLayer::ScrollOffsetClamped); | 3055 layer->scrollToOffset(toIntSize(point), RenderLayer::ScrollOffsetClamped); |
| 3056 } | 3056 } |
| 3057 | 3057 |
| 3058 } // namespace WebCore | 3058 } // namespace WebCore |
| OLD | NEW |