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