| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 virtual void autoscroll(const IntPoint&); | 445 virtual void autoscroll(const IntPoint&); |
| 446 bool canAutoscroll() const; | 446 bool canAutoscroll() const; |
| 447 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const; | 447 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const; |
| 448 static RenderBox* findAutoscrollable(RenderObject*); | 448 static RenderBox* findAutoscrollable(RenderObject*); |
| 449 virtual void stopAutoscroll() { } | 449 virtual void stopAutoscroll() { } |
| 450 virtual void panScroll(const IntPoint&); | 450 virtual void panScroll(const IntPoint&); |
| 451 | 451 |
| 452 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OOVERLAY); } | 452 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OOVERLAY); } |
| 453 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } | 453 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } |
| 454 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } | 454 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } |
| 455 bool scrollsOverflowX() const { return hasOverflowClip() && (style()->overfl
owX() == OSCROLL || hasAutoHorizontalScrollbar()); } | 455 bool scrollsOverflowX() const |
| 456 { |
| 457 return hasOverflowClip() && (style()->overflowX() == OSCROLL || hasAutoH
orizontalScrollbar() || (parent() && parent()->isTextField())); |
| 458 } |
| 456 bool scrollsOverflowY() const { return hasOverflowClip() && (style()->overfl
owY() == OSCROLL || hasAutoVerticalScrollbar()); } | 459 bool scrollsOverflowY() const { return hasOverflowClip() && (style()->overfl
owY() == OSCROLL || hasAutoVerticalScrollbar()); } |
| 457 bool usesCompositedScrolling() const; | 460 bool usesCompositedScrolling() const; |
| 458 | 461 |
| 459 bool hasUnsplittableScrollingOverflow() const; | 462 bool hasUnsplittableScrollingOverflow() const; |
| 460 bool isUnsplittableForPagination() const; | 463 bool isUnsplittableForPagination() const; |
| 461 | 464 |
| 462 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0); | 465 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0); |
| 463 | 466 |
| 464 virtual LayoutRect overflowClipRect(const LayoutPoint& location, RenderRegio
n*, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize); | 467 virtual LayoutRect overflowClipRect(const LayoutPoint& location, RenderRegio
n*, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize); |
| 465 LayoutRect clipRect(const LayoutPoint& location, RenderRegion*); | 468 LayoutRect clipRect(const LayoutPoint& location, RenderRegion*); |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 if (UNLIKELY(m_inlineBoxWrapper != 0)) | 739 if (UNLIKELY(m_inlineBoxWrapper != 0)) |
| 737 deleteLineBoxWrapper(); | 740 deleteLineBoxWrapper(); |
| 738 } | 741 } |
| 739 | 742 |
| 740 m_inlineBoxWrapper = boxWrapper; | 743 m_inlineBoxWrapper = boxWrapper; |
| 741 } | 744 } |
| 742 | 745 |
| 743 } // namespace WebCore | 746 } // namespace WebCore |
| 744 | 747 |
| 745 #endif // RenderBox_h | 748 #endif // RenderBox_h |
| OLD | NEW |