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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 bool isPointInResizeControl(const IntPoint& absolutePoint, ResizerHitTestTyp
e) const; | 164 bool isPointInResizeControl(const IntPoint& absolutePoint, ResizerHitTestTyp
e) const; |
165 bool hitTestOverflowControls(HitTestResult&, const IntPoint& localPoint); | 165 bool hitTestOverflowControls(HitTestResult&, const IntPoint& localPoint); |
166 | 166 |
167 bool hitTestResizerInFragments(const LayerFragments&, const HitTestLocation&
) const; | 167 bool hitTestResizerInFragments(const LayerFragments&, const HitTestLocation&
) const; |
168 | 168 |
169 LayoutRect exposeRect(const LayoutRect&, const ScrollAlignment& alignX, cons
t ScrollAlignment& alignY); | 169 LayoutRect exposeRect(const LayoutRect&, const ScrollAlignment& alignX, cons
t ScrollAlignment& alignY); |
170 | 170 |
171 // Returns true our scrollable area is in the FrameView's collection of scro
llable areas. This can | 171 // Returns true our scrollable area is in the FrameView's collection of scro
llable areas. This can |
172 // only happen if we're both scrollable, and we do in fact overflow. This me
ans that overflow: hidden | 172 // only happen if we're both scrollable, and we do in fact overflow. This me
ans that overflow: hidden |
173 // layers never get added to the FrameView's collection. | 173 // layers never get added to the FrameView's collection. |
174 bool scrollsOverflow() const; | 174 bool scrollsOverflow() const { return m_scrollsOverflow; } |
175 | 175 |
176 // Rectangle encompassing the scroll corner and resizer rect. | 176 // Rectangle encompassing the scroll corner and resizer rect. |
177 IntRect scrollCornerAndResizerRect() const; | 177 IntRect scrollCornerAndResizerRect() const; |
178 | 178 |
179 bool needsCompositedScrolling() const; | 179 bool needsCompositedScrolling() const; |
180 | 180 |
181 // FIXME: This needs to be exposed as forced compositing scrolling is a Rend
erLayerScrollableArea | 181 // FIXME: This needs to be exposed as forced compositing scrolling is a Rend
erLayerScrollableArea |
182 // concept and stacking container is a RenderLayerStackingNode concept. | 182 // concept and stacking container is a RenderLayerStackingNode concept. |
183 bool adjustForForceCompositedScrollingMode(bool) const; | 183 bool adjustForForceCompositedScrollingMode(bool) const; |
184 | 184 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 void updateCompositingLayersAfterScroll(); | 222 void updateCompositingLayersAfterScroll(); |
223 virtual void updateNeedsCompositedScrolling() OVERRIDE; | 223 virtual void updateNeedsCompositedScrolling() OVERRIDE; |
224 bool setNeedsCompositedScrolling(bool); | 224 bool setNeedsCompositedScrolling(bool); |
225 | 225 |
226 void setForceNeedsCompositedScrolling(ForceNeedsCompositedScrollingMode); | 226 void setForceNeedsCompositedScrolling(ForceNeedsCompositedScrollingMode); |
227 | 227 |
228 RenderBox* m_box; | 228 RenderBox* m_box; |
229 | 229 |
230 // Keeps track of whether the layer is currently resizing, so events can cau
se resizing to start and stop. | 230 // Keeps track of whether the layer is currently resizing, so events can cau
se resizing to start and stop. |
231 unsigned m_inResizeMode : 1; | 231 unsigned m_inResizeMode : 1; |
| 232 unsigned m_scrollsOverflow : 1; |
232 | 233 |
233 unsigned m_scrollDimensionsDirty : 1; | 234 unsigned m_scrollDimensionsDirty : 1; |
234 unsigned m_inOverflowRelayout : 1; | 235 unsigned m_inOverflowRelayout : 1; |
235 | 236 |
236 unsigned m_needsCompositedScrolling : 1; | 237 unsigned m_needsCompositedScrolling : 1; |
237 | 238 |
238 ForceNeedsCompositedScrollingMode m_forceNeedsCompositedScrolling; | 239 ForceNeedsCompositedScrollingMode m_forceNeedsCompositedScrolling; |
239 | 240 |
240 // The width/height of our scrolled area. | 241 // The width/height of our scrolled area. |
241 LayoutRect m_overflowRect; | 242 LayoutRect m_overflowRect; |
(...skipping 10 matching lines...) Expand all Loading... |
252 // Renderers to hold our custom scroll corner. | 253 // Renderers to hold our custom scroll corner. |
253 RenderScrollbarPart* m_scrollCorner; | 254 RenderScrollbarPart* m_scrollCorner; |
254 | 255 |
255 // Renderers to hold our custom resizer. | 256 // Renderers to hold our custom resizer. |
256 RenderScrollbarPart* m_resizer; | 257 RenderScrollbarPart* m_resizer; |
257 }; | 258 }; |
258 | 259 |
259 } // Namespace WebCore | 260 } // Namespace WebCore |
260 | 261 |
261 #endif // RenderLayerScrollableArea_h | 262 #endif // RenderLayerScrollableArea_h |
OLD | NEW |