OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "core/css/PseudoStyleRequest.h" | 47 #include "core/css/PseudoStyleRequest.h" |
48 #include "core/dom/shadow/ShadowRoot.h" | 48 #include "core/dom/shadow/ShadowRoot.h" |
49 #include "core/editing/FrameSelection.h" | 49 #include "core/editing/FrameSelection.h" |
50 #include "core/inspector/InspectorInstrumentation.h" | 50 #include "core/inspector/InspectorInstrumentation.h" |
51 #include "core/page/EventHandler.h" | 51 #include "core/page/EventHandler.h" |
52 #include "core/page/FocusController.h" | 52 #include "core/page/FocusController.h" |
53 #include "core/page/Frame.h" | 53 #include "core/page/Frame.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/scrolling/ScrollingCoordinator.h" | 56 #include "core/page/scrolling/ScrollingCoordinator.h" |
57 #include "core/platform/PlatformGestureEvent.h" | |
58 #include "core/platform/PlatformMouseEvent.h" | |
59 #include "core/platform/ScrollAnimator.h" | 57 #include "core/platform/ScrollAnimator.h" |
60 #include "core/platform/ScrollbarTheme.h" | 58 #include "core/platform/ScrollbarTheme.h" |
61 #include "core/platform/graphics/GraphicsContextStateSaver.h" | 59 #include "core/platform/graphics/GraphicsContextStateSaver.h" |
62 #include "core/platform/graphics/GraphicsLayer.h" | 60 #include "core/platform/graphics/GraphicsLayer.h" |
63 #include "core/rendering/CompositedLayerMapping.h" | 61 #include "core/rendering/CompositedLayerMapping.h" |
64 #include "core/rendering/RenderLayerCompositor.h" | 62 #include "core/rendering/RenderLayerCompositor.h" |
65 #include "core/rendering/RenderScrollbar.h" | 63 #include "core/rendering/RenderScrollbar.h" |
66 #include "core/rendering/RenderScrollbarPart.h" | 64 #include "core/rendering/RenderScrollbarPart.h" |
67 #include "core/rendering/RenderView.h" | 65 #include "core/rendering/RenderView.h" |
| 66 #include "platform/PlatformGestureEvent.h" |
| 67 #include "platform/PlatformMouseEvent.h" |
68 | 68 |
69 namespace WebCore { | 69 namespace WebCore { |
70 | 70 |
71 const int ResizerControlExpandRatioForTouch = 2; | 71 const int ResizerControlExpandRatioForTouch = 2; |
72 | 72 |
73 RenderLayerScrollableArea::RenderLayerScrollableArea(RenderBox* box) | 73 RenderLayerScrollableArea::RenderLayerScrollableArea(RenderBox* box) |
74 : m_box(box) | 74 : m_box(box) |
75 , m_inResizeMode(false) | 75 , m_inResizeMode(false) |
76 , m_scrollDimensionsDirty(true) | 76 , m_scrollDimensionsDirty(true) |
77 , m_inOverflowRelayout(false) | 77 , m_inOverflowRelayout(false) |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1264 baseHeight = baseHeight / zoomFactor; | 1264 baseHeight = baseHeight / zoomFactor; |
1265 element->setInlineStyleProperty(CSSPropertyHeight, roundToInt(baseHeight
+ difference.height()), CSSPrimitiveValue::CSS_PX); | 1265 element->setInlineStyleProperty(CSSPropertyHeight, roundToInt(baseHeight
+ difference.height()), CSSPrimitiveValue::CSS_PX); |
1266 } | 1266 } |
1267 | 1267 |
1268 document.updateLayout(); | 1268 document.updateLayout(); |
1269 | 1269 |
1270 // FIXME (Radar 4118564): We should also autoscroll the window as necessary
to keep the point under the cursor in view. | 1270 // FIXME (Radar 4118564): We should also autoscroll the window as necessary
to keep the point under the cursor in view. |
1271 } | 1271 } |
1272 | 1272 |
1273 } // Namespace WebCore | 1273 } // Namespace WebCore |
OLD | NEW |