| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 LayoutRect layoutOverflowRect() const { return m_overflow ? m_overflow->layo
utOverflowRect() : noOverflowRect(); } | 193 LayoutRect layoutOverflowRect() const { return m_overflow ? m_overflow->layo
utOverflowRect() : noOverflowRect(); } |
| 194 IntRect pixelSnappedLayoutOverflowRect() const { return pixelSnappedIntRect(
layoutOverflowRect()); } | 194 IntRect pixelSnappedLayoutOverflowRect() const { return pixelSnappedIntRect(
layoutOverflowRect()); } |
| 195 LayoutSize maxLayoutOverflow() const { return LayoutSize(layoutOverflowRect(
).maxX(), layoutOverflowRect().maxY()); } | 195 LayoutSize maxLayoutOverflow() const { return LayoutSize(layoutOverflowRect(
).maxX(), layoutOverflowRect().maxY()); } |
| 196 LayoutUnit logicalLeftLayoutOverflow() const { return layoutOverflowRect().x
(); } | 196 LayoutUnit logicalLeftLayoutOverflow() const { return layoutOverflowRect().x
(); } |
| 197 LayoutUnit logicalRightLayoutOverflow() const { return layoutOverflowRect().
maxX(); } | 197 LayoutUnit logicalRightLayoutOverflow() const { return layoutOverflowRect().
maxX(); } |
| 198 | 198 |
| 199 virtual LayoutRect visualOverflowRect() const { return m_overflow ? m_overfl
ow->visualOverflowRect() : borderBoxRect(); } | 199 virtual LayoutRect visualOverflowRect() const { return m_overflow ? m_overfl
ow->visualOverflowRect() : borderBoxRect(); } |
| 200 LayoutUnit logicalLeftVisualOverflow() const { return visualOverflowRect().x
(); } | 200 LayoutUnit logicalLeftVisualOverflow() const { return visualOverflowRect().x
(); } |
| 201 LayoutUnit logicalRightVisualOverflow() const { return visualOverflowRect().
maxX(); } | 201 LayoutUnit logicalRightVisualOverflow() const { return visualOverflowRect().
maxX(); } |
| 202 | 202 |
| 203 LayoutRect overflowRectForPaintRejection() const; | |
| 204 | |
| 205 LayoutRect contentsVisualOverflowRect() const { return m_overflow ? m_overfl
ow->contentsVisualOverflowRect() : LayoutRect(); } | 203 LayoutRect contentsVisualOverflowRect() const { return m_overflow ? m_overfl
ow->contentsVisualOverflowRect() : LayoutRect(); } |
| 206 | 204 |
| 207 void addLayoutOverflow(const LayoutRect&); | 205 void addLayoutOverflow(const LayoutRect&); |
| 208 void addVisualOverflow(const LayoutRect&); | 206 void addVisualOverflow(const LayoutRect&); |
| 209 | 207 |
| 210 // Clipped by the contents clip, if one exists. | 208 // Clipped by the contents clip, if one exists. |
| 211 void addContentsVisualOverflow(const LayoutRect&); | 209 void addContentsVisualOverflow(const LayoutRect&); |
| 212 | 210 |
| 213 void addVisualEffectOverflow(); | 211 void addVisualEffectOverflow(); |
| 214 LayoutBoxExtent computeVisualEffectOverflowExtent() const; | 212 LayoutBoxExtent computeVisualEffectOverflowExtent() const; |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 virtual void stopAutoscroll() { } | 440 virtual void stopAutoscroll() { } |
| 443 | 441 |
| 444 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OOVERLAY); } | 442 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OOVERLAY); } |
| 445 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } | 443 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } |
| 446 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } | 444 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } |
| 447 | 445 |
| 448 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } | 446 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } |
| 449 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } | 447 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } |
| 450 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style()
->overflowX() == OSCROLL || hasAutoHorizontalScrollbar()); } | 448 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style()
->overflowX() == OSCROLL || hasAutoHorizontalScrollbar()); } |
| 451 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style()
->overflowY() == OSCROLL || hasAutoVerticalScrollbar()); } | 449 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style()
->overflowY() == OSCROLL || hasAutoVerticalScrollbar()); } |
| 452 bool usesCompositedScrolling() const; | |
| 453 | |
| 454 // Elements such as the <input> field override this to specify that they are
scrollable | |
| 455 // outside the context of the CSS overflow style | |
| 456 virtual bool isIntristicallyScrollable(ScrollbarOrientation orientation) con
st { return false; } | |
| 457 | 450 |
| 458 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; | 451 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; |
| 459 | 452 |
| 460 virtual LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScro
llbarSizeRelevancy = IgnoreOverlayScrollbarSize); | 453 virtual LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScro
llbarSizeRelevancy = IgnoreOverlayScrollbarSize); |
| 461 LayoutRect clipRect(const LayoutPoint& location); | 454 LayoutRect clipRect(const LayoutPoint& location); |
| 462 virtual bool hasControlClip() const { return false; } | 455 virtual bool hasControlClip() const { return false; } |
| 463 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout
Rect(); } | 456 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout
Rect(); } |
| 464 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont
entsClipBehavior); | 457 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont
entsClipBehavior); |
| 465 void popContentsClip(PaintInfo&, PaintPhase originalPhase, const LayoutPoint
& accumulatedOffset); | 458 void popContentsClip(PaintInfo&, PaintPhase originalPhase, const LayoutPoint
& accumulatedOffset); |
| 466 | 459 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 if (UNLIKELY(inlineBoxWrapper() != 0)) | 716 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 724 deleteLineBoxWrapper(); | 717 deleteLineBoxWrapper(); |
| 725 } | 718 } |
| 726 | 719 |
| 727 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 720 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 728 } | 721 } |
| 729 | 722 |
| 730 } // namespace blink | 723 } // namespace blink |
| 731 | 724 |
| 732 #endif // RenderBox_h | 725 #endif // RenderBox_h |
| OLD | NEW |