| 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 17 matching lines...) Expand all Loading... |
| 28 #include "platform/scroll/ScrollTypes.h" | 28 #include "platform/scroll/ScrollTypes.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 struct PaintInfo; | 32 struct PaintInfo; |
| 33 class RenderBlockFlow; | 33 class RenderBlockFlow; |
| 34 class RenderLayerScrollableArea; | 34 class RenderLayerScrollableArea; |
| 35 | 35 |
| 36 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; | 36 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; |
| 37 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde
rPadding }; | 37 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde
rPadding }; |
| 38 enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayS
crollbarSize }; | |
| 39 enum MarginDirection { BlockDirection, InlineDirection }; | 38 enum MarginDirection { BlockDirection, InlineDirection }; |
| 40 | 39 |
| 41 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; | 40 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; |
| 42 | 41 |
| 43 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible }; | 42 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible }; |
| 44 | 43 |
| 45 enum ScrollOffsetClamping { | 44 enum ScrollOffsetClamping { |
| 46 ScrollOffsetUnclamped, | 45 ScrollOffsetUnclamped, |
| 47 ScrollOffsetClamped | 46 ScrollOffsetClamped |
| 48 }; | 47 }; |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } | 438 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } |
| 440 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } | 439 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } |
| 441 | 440 |
| 442 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } | 441 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } |
| 443 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } | 442 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } |
| 444 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style()
->overflowX() == OSCROLL || hasAutoHorizontalScrollbar()); } | 443 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style()
->overflowX() == OSCROLL || hasAutoHorizontalScrollbar()); } |
| 445 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style()
->overflowY() == OSCROLL || hasAutoVerticalScrollbar()); } | 444 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style()
->overflowY() == OSCROLL || hasAutoVerticalScrollbar()); } |
| 446 | 445 |
| 447 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; | 446 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; |
| 448 | 447 |
| 449 virtual LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScro
llbarSizeRelevancy = IgnoreOverlayScrollbarSize); | 448 virtual LayoutRect overflowClipRect(const LayoutPoint& location); |
| 450 LayoutRect clipRect(const LayoutPoint& location); | 449 LayoutRect clipRect(const LayoutPoint& location); |
| 451 virtual bool hasControlClip() const { return false; } | 450 virtual bool hasControlClip() const { return false; } |
| 452 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout
Rect(); } | 451 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout
Rect(); } |
| 453 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont
entsClipBehavior); | 452 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont
entsClipBehavior); |
| 454 void popContentsClip(PaintInfo&, PaintPhase originalPhase, const LayoutPoint
& accumulatedOffset); | 453 void popContentsClip(PaintInfo&, PaintPhase originalPhase, const LayoutPoint
& accumulatedOffset); |
| 455 | 454 |
| 456 virtual void paintObject(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHE
D(); } | 455 virtual void paintObject(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHE
D(); } |
| 457 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&); | 456 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&); |
| 458 virtual void paintMask(PaintInfo&, const LayoutPoint&); | 457 virtual void paintMask(PaintInfo&, const LayoutPoint&); |
| 459 virtual void paintClippingMask(PaintInfo&, const LayoutPoint&); | 458 virtual void paintClippingMask(PaintInfo&, const LayoutPoint&); |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 if (UNLIKELY(inlineBoxWrapper() != 0)) | 711 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 713 deleteLineBoxWrapper(); | 712 deleteLineBoxWrapper(); |
| 714 } | 713 } |
| 715 | 714 |
| 716 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 715 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 717 } | 716 } |
| 718 | 717 |
| 719 } // namespace blink | 718 } // namespace blink |
| 720 | 719 |
| 721 #endif // RenderBox_h | 720 #endif // RenderBox_h |
| OLD | NEW |