| 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 17 matching lines...) Expand all Loading... |
| 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" | 32 #include "HTMLFormElement.h" |
| 33 #include "HTMLImageElement.h" | 33 #include "HTMLImageElement.h" |
| 34 #include "HTMLLabelElement.h" | 34 #include "HTMLLabelElement.h" |
| 35 #include "HTMLOptionElement.h" | 35 #include "HTMLOptionElement.h" |
| 36 #include "HTMLSelectElement.h" | 36 #include "HTMLSelectElement.h" |
| 37 #include "HTMLTextAreaElement.h" | 37 #include "HTMLTextAreaElement.h" |
| 38 #include "SVGImage.h" | |
| 39 #include "SVGImageChromeClient.h" | |
| 40 #include "SVGSVGElement.h" | 38 #include "SVGSVGElement.h" |
| 41 #include "core/accessibility/AXObjectCache.h" | 39 #include "core/accessibility/AXObjectCache.h" |
| 42 #include "core/accessibility/AccessibilityImageMapLink.h" | 40 #include "core/accessibility/AccessibilityImageMapLink.h" |
| 43 #include "core/accessibility/AccessibilitySVGRoot.h" | 41 #include "core/accessibility/AccessibilitySVGRoot.h" |
| 44 #include "core/accessibility/AccessibilitySpinButton.h" | 42 #include "core/accessibility/AccessibilitySpinButton.h" |
| 45 #include "core/accessibility/AccessibilityTable.h" | 43 #include "core/accessibility/AccessibilityTable.h" |
| 46 #include "core/dom/NodeTraversal.h" | 44 #include "core/dom/NodeTraversal.h" |
| 47 #include "core/editing/FrameSelection.h" | 45 #include "core/editing/FrameSelection.h" |
| 48 #include "core/editing/RenderedPosition.h" | 46 #include "core/editing/RenderedPosition.h" |
| 49 #include "core/editing/VisibleUnits.h" | 47 #include "core/editing/VisibleUnits.h" |
| 50 #include "core/editing/htmlediting.h" | 48 #include "core/editing/htmlediting.h" |
| 51 #include "core/loader/ProgressTracker.h" | 49 #include "core/loader/ProgressTracker.h" |
| 52 #include "core/page/Page.h" | 50 #include "core/page/Page.h" |
| 53 #include "core/platform/LocalizedStrings.h" | 51 #include "core/platform/LocalizedStrings.h" |
| 54 #include "core/rendering/HitTestResult.h" | 52 #include "core/rendering/HitTestResult.h" |
| 55 #include "core/rendering/RenderFieldset.h" | 53 #include "core/rendering/RenderFieldset.h" |
| 56 #include "core/rendering/RenderFileUploadControl.h" | 54 #include "core/rendering/RenderFileUploadControl.h" |
| 57 #include "core/rendering/RenderHTMLCanvas.h" | 55 #include "core/rendering/RenderHTMLCanvas.h" |
| 58 #include "core/rendering/RenderImage.h" | 56 #include "core/rendering/RenderImage.h" |
| 59 #include "core/rendering/RenderInline.h" | 57 #include "core/rendering/RenderInline.h" |
| 60 #include "core/rendering/RenderLayer.h" | 58 #include "core/rendering/RenderLayer.h" |
| 61 #include "core/rendering/RenderListMarker.h" | 59 #include "core/rendering/RenderListMarker.h" |
| 62 #include "core/rendering/RenderMenuList.h" | 60 #include "core/rendering/RenderMenuList.h" |
| 63 #include "core/rendering/RenderTextControlSingleLine.h" | 61 #include "core/rendering/RenderTextControlSingleLine.h" |
| 64 #include "core/rendering/RenderTextFragment.h" | 62 #include "core/rendering/RenderTextFragment.h" |
| 65 #include "core/rendering/RenderWidget.h" | 63 #include "core/rendering/RenderWidget.h" |
| 64 #include "core/svg/graphics/SVGImage.h" |
| 65 #include "core/svg/graphics/SVGImageChromeClient.h" |
| 66 #include <wtf/StdLibExtras.h> | 66 #include <wtf/StdLibExtras.h> |
| 67 #include <wtf/text/StringBuilder.h> | 67 #include <wtf/text/StringBuilder.h> |
| 68 #include <wtf/unicode/CharacterNames.h> | 68 #include <wtf/unicode/CharacterNames.h> |
| 69 | 69 |
| 70 using namespace std; | 70 using namespace std; |
| 71 | 71 |
| 72 namespace WebCore { | 72 namespace WebCore { |
| 73 | 73 |
| 74 using namespace HTMLNames; | 74 using namespace HTMLNames; |
| 75 | 75 |
| (...skipping 2973 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 |