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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 // FIXME: We shouldn't allow access to m_overflowRect outside this class. | 117 // FIXME: We shouldn't allow access to m_overflowRect outside this class. |
118 LayoutRect overflowRect() const { return m_overflowRect; } | 118 LayoutRect overflowRect() const { return m_overflowRect; } |
119 | 119 |
120 void scrollToOffset(const IntSize& scrollOffset, ScrollOffsetClamping = Scro
llOffsetUnclamped); | 120 void scrollToOffset(const IntSize& scrollOffset, ScrollOffsetClamping = Scro
llOffsetUnclamped); |
121 void scrollToXOffset(int x, ScrollOffsetClamping clamp = ScrollOffsetUnclamp
ed) { scrollToOffset(IntSize(x, scrollYOffset()), clamp); } | 121 void scrollToXOffset(int x, ScrollOffsetClamping clamp = ScrollOffsetUnclamp
ed) { scrollToOffset(IntSize(x, scrollYOffset()), clamp); } |
122 void scrollToYOffset(int y, ScrollOffsetClamping clamp = ScrollOffsetUnclamp
ed) { scrollToOffset(IntSize(scrollXOffset(), y), clamp); } | 122 void scrollToYOffset(int y, ScrollOffsetClamping clamp = ScrollOffsetUnclamp
ed) { scrollToOffset(IntSize(scrollXOffset(), y), clamp); } |
123 | 123 |
124 void updateAfterLayout(); | 124 void updateAfterLayout(); |
125 void updateAfterStyleChange(const RenderStyle*); | 125 void updateAfterStyleChange(const RenderStyle*); |
| 126 void updateAfterOverflowRecalc(); |
126 | 127 |
127 bool hasScrollbar() const { return m_hBar || m_vBar; } | 128 bool hasScrollbar() const { return m_hBar || m_vBar; } |
128 | 129 |
129 // FIXME: This should be removed. | 130 // FIXME: This should be removed. |
130 bool hasScrollCorner() const { return m_scrollCorner; } | 131 bool hasScrollCorner() const { return m_scrollCorner; } |
131 | 132 |
132 void resize(const PlatformEvent&, const LayoutSize&); | 133 void resize(const PlatformEvent&, const LayoutSize&); |
133 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; | 134 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; |
134 | 135 |
135 bool inResizeMode() const { return m_inResizeMode; } | 136 bool inResizeMode() const { return m_inResizeMode; } |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 // Renderers to hold our custom scroll corner. | 256 // Renderers to hold our custom scroll corner. |
256 RenderScrollbarPart* m_scrollCorner; | 257 RenderScrollbarPart* m_scrollCorner; |
257 | 258 |
258 // Renderers to hold our custom resizer. | 259 // Renderers to hold our custom resizer. |
259 RenderScrollbarPart* m_resizer; | 260 RenderScrollbarPart* m_resizer; |
260 }; | 261 }; |
261 | 262 |
262 } // Namespace WebCore | 263 } // Namespace WebCore |
263 | 264 |
264 #endif // RenderLayerScrollableArea_h | 265 #endif // RenderLayerScrollableArea_h |
OLD | NEW |