OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 bool autoscrollInProgress() const; | 457 bool autoscrollInProgress() const; |
458 bool canAutoscroll() const; | 458 bool canAutoscroll() const; |
459 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const; | 459 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const; |
460 static RenderBox* findAutoscrollable(RenderObject*); | 460 static RenderBox* findAutoscrollable(RenderObject*); |
461 virtual void stopAutoscroll() { } | 461 virtual void stopAutoscroll() { } |
462 virtual void panScroll(const IntPoint&); | 462 virtual void panScroll(const IntPoint&); |
463 | 463 |
464 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OOVERLAY); } | 464 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OOVERLAY); } |
465 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } | 465 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } |
466 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } | 466 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } |
467 bool scrollsOverflowX() const { return hasOverflowClip() && (style()->overfl
owX() == OSCROLL || hasAutoHorizontalScrollbar()); } | 467 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style()
->overflowX() == OSCROLL || hasAutoHorizontalScrollbar()); } |
468 bool scrollsOverflowY() const { return hasOverflowClip() && (style()->overfl
owY() == OSCROLL || hasAutoVerticalScrollbar()); } | 468 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style()
->overflowY() == OSCROLL || hasAutoVerticalScrollbar()); } |
469 bool usesCompositedScrolling() const; | 469 bool usesCompositedScrolling() const; |
470 | 470 |
| 471 // Elements such as the <input> field override this to specify that they are
scrollable |
| 472 // outside the context of the CSS overflow style |
| 473 virtual bool isIntristicallyScrollable(ScrollbarOrientation orientation) con
st { return false; } |
| 474 |
471 bool hasUnsplittableScrollingOverflow() const; | 475 bool hasUnsplittableScrollingOverflow() const; |
472 bool isUnsplittableForPagination() const; | 476 bool isUnsplittableForPagination() const; |
473 | 477 |
474 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0); | 478 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0); |
475 | 479 |
476 virtual LayoutRect overflowClipRect(const LayoutPoint& location, RenderRegio
n*, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize); | 480 virtual LayoutRect overflowClipRect(const LayoutPoint& location, RenderRegio
n*, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize); |
477 LayoutRect clipRect(const LayoutPoint& location, RenderRegion*); | 481 LayoutRect clipRect(const LayoutPoint& location, RenderRegion*); |
478 virtual bool hasControlClip() const { return false; } | 482 virtual bool hasControlClip() const { return false; } |
479 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout
Rect(); } | 483 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout
Rect(); } |
480 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont
entsClipBehavior); | 484 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont
entsClipBehavior); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 if (UNLIKELY(m_inlineBoxWrapper != 0)) | 754 if (UNLIKELY(m_inlineBoxWrapper != 0)) |
751 deleteLineBoxWrapper(); | 755 deleteLineBoxWrapper(); |
752 } | 756 } |
753 | 757 |
754 m_inlineBoxWrapper = boxWrapper; | 758 m_inlineBoxWrapper = boxWrapper; |
755 } | 759 } |
756 | 760 |
757 } // namespace WebCore | 761 } // namespace WebCore |
758 | 762 |
759 #endif // RenderBox_h | 763 #endif // RenderBox_h |
OLD | NEW |