| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 IntSize adjustedScrollOffset() const { return IntSize(scrollXOffset(), scrol
lYOffset()); } | 142 IntSize adjustedScrollOffset() const { return IntSize(scrollXOffset(), scrol
lYOffset()); } |
| 143 | 143 |
| 144 void paintResizer(GraphicsContext*, const IntPoint& paintOffset, const IntRe
ct& damageRect); | 144 void paintResizer(GraphicsContext*, const IntPoint& paintOffset, const IntRe
ct& damageRect); |
| 145 void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, co
nst IntRect& damageRect, bool paintingOverlayControls); | 145 void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, co
nst IntRect& damageRect, bool paintingOverlayControls); |
| 146 void paintScrollCorner(GraphicsContext*, const IntPoint&, const IntRect& dam
ageRect); | 146 void paintScrollCorner(GraphicsContext*, const IntPoint&, const IntRect& dam
ageRect); |
| 147 | 147 |
| 148 // If IntSize is not given, then we must incur additional overhead to instan
tiate a RenderGeometryMap | 148 // If IntSize is not given, then we must incur additional overhead to instan
tiate a RenderGeometryMap |
| 149 // and compute the correct offset ourselves. | 149 // and compute the correct offset ourselves. |
| 150 void positionOverflowControls(); | 150 void positionOverflowControls(); |
| 151 void positionOverflowControls(const IntSize& offsetFromRoot); | 151 void positionOverflowControls(const IntSize& offsetFromRoot); |
| 152 void positionNewlyCreatedOverflowControls(); |
| 152 | 153 |
| 153 // isPointInResizeControl() is used for testing if a pointer/touch position
is in the resize control | 154 // isPointInResizeControl() is used for testing if a pointer/touch position
is in the resize control |
| 154 // area. | 155 // area. |
| 155 bool isPointInResizeControl(const IntPoint& absolutePoint, ResizerHitTestTyp
e) const; | 156 bool isPointInResizeControl(const IntPoint& absolutePoint, ResizerHitTestTyp
e) const; |
| 156 bool hitTestOverflowControls(HitTestResult&, const IntPoint& localPoint); | 157 bool hitTestOverflowControls(HitTestResult&, const IntPoint& localPoint); |
| 157 | 158 |
| 158 bool hitTestResizerInFragments(const LayerFragments&, const HitTestLocation&
) const; | 159 bool hitTestResizerInFragments(const LayerFragments&, const HitTestLocation&
) const; |
| 159 | 160 |
| 160 LayoutRect exposeRect(const LayoutRect&, const ScrollAlignment& alignX, cons
t ScrollAlignment& alignY); | 161 LayoutRect exposeRect(const LayoutRect&, const ScrollAlignment& alignX, cons
t ScrollAlignment& alignY); |
| 161 | 162 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // Renderers to hold our custom scroll corner. | 235 // Renderers to hold our custom scroll corner. |
| 235 RenderScrollbarPart* m_scrollCorner; | 236 RenderScrollbarPart* m_scrollCorner; |
| 236 | 237 |
| 237 // Renderers to hold our custom resizer. | 238 // Renderers to hold our custom resizer. |
| 238 RenderScrollbarPart* m_resizer; | 239 RenderScrollbarPart* m_resizer; |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 } // Namespace WebCore | 242 } // Namespace WebCore |
| 242 | 243 |
| 243 #endif // RenderLayerScrollableArea_h | 244 #endif // RenderLayerScrollableArea_h |
| OLD | NEW |