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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 int scrollWidth() const; | 388 int scrollWidth() const; |
389 int scrollHeight() const; | 389 int scrollHeight() const; |
390 | 390 |
391 void panScrollFromPoint(const IntPoint&); | 391 void panScrollFromPoint(const IntPoint&); |
392 | 392 |
393 enum ScrollOffsetClamping { | 393 enum ScrollOffsetClamping { |
394 ScrollOffsetUnclamped, | 394 ScrollOffsetUnclamped, |
395 ScrollOffsetClamped | 395 ScrollOffsetClamped |
396 }; | 396 }; |
397 | 397 |
| 398 enum ScrollPropagation { |
| 399 ShouldPropagateScroll, |
| 400 DontPropagateScroll |
| 401 }; |
| 402 |
398 // Scrolling methods for layers that can scroll their overflow. | 403 // Scrolling methods for layers that can scroll their overflow. |
| 404 bool scrollBy(const IntSize&, ScrollOffsetClamping = ScrollOffsetUnclamped,
ScrollPropagation = DontPropagateScroll); |
399 void scrollByRecursively(const IntSize&, ScrollOffsetClamping = ScrollOffset
Unclamped); | 405 void scrollByRecursively(const IntSize&, ScrollOffsetClamping = ScrollOffset
Unclamped); |
400 void scrollToOffset(const IntSize&, ScrollOffsetClamping = ScrollOffsetUncla
mped); | 406 void scrollToOffset(const IntSize&, ScrollOffsetClamping = ScrollOffsetUncla
mped); |
401 void scrollToXOffset(int x, ScrollOffsetClamping clamp = ScrollOffsetUnclamp
ed) { scrollToOffset(IntSize(x, scrollYOffset()), clamp); } | 407 void scrollToXOffset(int x, ScrollOffsetClamping clamp = ScrollOffsetUnclamp
ed) { scrollToOffset(IntSize(x, scrollYOffset()), clamp); } |
402 void scrollToYOffset(int y, ScrollOffsetClamping clamp = ScrollOffsetUnclamp
ed) { scrollToOffset(IntSize(scrollXOffset(), y), clamp); } | 408 void scrollToYOffset(int y, ScrollOffsetClamping clamp = ScrollOffsetUnclamp
ed) { scrollToOffset(IntSize(scrollXOffset(), y), clamp); } |
403 | 409 |
404 int scrollXOffset() const { return m_scrollOffset.width() + scrollOrigin().x
(); } | 410 int scrollXOffset() const { return m_scrollOffset.width() + scrollOrigin().x
(); } |
405 int scrollYOffset() const { return m_scrollOffset.height() + scrollOrigin().
y(); } | 411 int scrollYOffset() const { return m_scrollOffset.height() + scrollOrigin().
y(); } |
406 IntSize adjustedScrollOffset() const { return IntSize(scrollXOffset(), scrol
lYOffset()); } | 412 IntSize adjustedScrollOffset() const { return IntSize(scrollXOffset(), scrol
lYOffset()); } |
407 | 413 |
408 void scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX, c
onst ScrollAlignment& alignY); | 414 void scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX, c
onst ScrollAlignment& alignY); |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1317 | 1323 |
1318 } // namespace WebCore | 1324 } // namespace WebCore |
1319 | 1325 |
1320 #ifndef NDEBUG | 1326 #ifndef NDEBUG |
1321 // Outside the WebCore namespace for ease of invocation from gdb. | 1327 // Outside the WebCore namespace for ease of invocation from gdb. |
1322 void showLayerTree(const WebCore::RenderLayer*); | 1328 void showLayerTree(const WebCore::RenderLayer*); |
1323 void showLayerTree(const WebCore::RenderObject*); | 1329 void showLayerTree(const WebCore::RenderObject*); |
1324 #endif | 1330 #endif |
1325 | 1331 |
1326 #endif // RenderLayer_h | 1332 #endif // RenderLayer_h |
OLD | NEW |