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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 void computeScrollDimensions(); | 191 void computeScrollDimensions(); |
192 | 192 |
193 IntSize clampScrollOffset(const IntSize&) const; | 193 IntSize clampScrollOffset(const IntSize&) const; |
194 | 194 |
195 IntRect rectForHorizontalScrollbar(const IntRect& borderBoxRect) const; | 195 IntRect rectForHorizontalScrollbar(const IntRect& borderBoxRect) const; |
196 IntRect rectForVerticalScrollbar(const IntRect& borderBoxRect) const; | 196 IntRect rectForVerticalScrollbar(const IntRect& borderBoxRect) const; |
197 LayoutUnit verticalScrollbarStart(int minX, int maxX) const; | 197 LayoutUnit verticalScrollbarStart(int minX, int maxX) const; |
198 LayoutUnit horizontalScrollbarStart(int minX) const; | 198 LayoutUnit horizontalScrollbarStart(int minX) const; |
199 IntSize scrollbarOffset(const Scrollbar*) const; | 199 IntSize scrollbarOffset(const Scrollbar*) const; |
200 | 200 |
201 PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation); | 201 PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollbarOrientation); |
202 void destroyScrollbar(ScrollbarOrientation); | 202 void destroyScrollbar(ScrollbarOrientation); |
203 | 203 |
204 void setHasHorizontalScrollbar(bool hasScrollbar); | 204 void setHasHorizontalScrollbar(bool hasScrollbar); |
205 void setHasVerticalScrollbar(bool hasScrollbar); | 205 void setHasVerticalScrollbar(bool hasScrollbar); |
206 | 206 |
207 void updateScrollCornerStyle(); | 207 void updateScrollCornerStyle(); |
208 | 208 |
209 // See comments on isPointInResizeControl. | 209 // See comments on isPointInResizeControl. |
210 IntRect resizerCornerRect(const IntRect&, ResizerHitTestType) const; | 210 IntRect resizerCornerRect(const IntRect&, ResizerHitTestType) const; |
211 bool overflowControlsIntersectRect(const IntRect& localRect) const; | 211 bool overflowControlsIntersectRect(const IntRect& localRect) const; |
(...skipping 26 matching lines...) Expand all Loading... |
238 | 238 |
239 // The width/height of our scrolled area. | 239 // The width/height of our scrolled area. |
240 LayoutRect m_overflowRect; | 240 LayoutRect m_overflowRect; |
241 | 241 |
242 // This is the (scroll) offset from scrollOrigin(). | 242 // This is the (scroll) offset from scrollOrigin(). |
243 IntSize m_scrollOffset; | 243 IntSize m_scrollOffset; |
244 | 244 |
245 IntPoint m_cachedOverlayScrollbarOffset; | 245 IntPoint m_cachedOverlayScrollbarOffset; |
246 | 246 |
247 // For areas with overflow, we have a pair of scrollbars. | 247 // For areas with overflow, we have a pair of scrollbars. |
248 RefPtr<Scrollbar> m_hBar; | 248 RefPtrWillBePersistent<Scrollbar> m_hBar; |
249 RefPtr<Scrollbar> m_vBar; | 249 RefPtrWillBePersistent<Scrollbar> m_vBar; |
250 | 250 |
251 // Renderers to hold our custom scroll corner. | 251 // Renderers to hold our custom scroll corner. |
252 RawPtrWillBePersistent<RenderScrollbarPart> m_scrollCorner; | 252 RawPtrWillBePersistent<RenderScrollbarPart> m_scrollCorner; |
253 | 253 |
254 // Renderers to hold our custom resizer. | 254 // Renderers to hold our custom resizer. |
255 RawPtrWillBePersistent<RenderScrollbarPart> m_resizer; | 255 RawPtrWillBePersistent<RenderScrollbarPart> m_resizer; |
256 }; | 256 }; |
257 | 257 |
258 } // namespace blink | 258 } // namespace blink |
259 | 259 |
260 #endif // RenderLayerScrollableArea_h | 260 #endif // RenderLayerScrollableArea_h |
OLD | NEW |