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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
632 EBreak breakAfter() const; | 632 EBreak breakAfter() const; |
633 EBreak breakBefore() const; | 633 EBreak breakBefore() const; |
634 EBreak breakInside() const; | 634 EBreak breakInside() const; |
635 | 635 |
636 static bool isForcedFragmentainerBreakValue(EBreak); | 636 static bool isForcedFragmentainerBreakValue(EBreak); |
637 | 637 |
638 bool hasForcedBreakBefore() const; | 638 bool hasForcedBreakBefore() const; |
639 bool hasForcedBreakAfter() const; | 639 bool hasForcedBreakAfter() const; |
640 | 640 |
641 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride; | 641 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride; |
642 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, const PaintInvalidationState*) const override; | 642 bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, const PaintInvalidationState*, bool edgeInclusive) const override; |
chrishtr
2016/03/21 22:14:50
Upgrade this bool to a bitfield, and default it to
ojan
2016/03/21 22:23:05
Use an enum instead of a bool argument.
szager1
2016/03/22 00:55:48
Done.
ojan
2016/03/22 04:24:47
Why a bitfield instead of an enum? In my experienc
| |
643 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); | 643 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); |
644 | 644 |
645 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const; | 645 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const; |
646 | 646 |
647 LayoutUnit containingBlockLogicalWidthForContent() const override; | 647 LayoutUnit containingBlockLogicalWidthForContent() const override; |
648 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const; | 648 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const; |
649 | 649 |
650 LayoutUnit containingBlockAvailableLineWidth() const; | 650 LayoutUnit containingBlockAvailableLineWidth() const; |
651 LayoutUnit perpendicularContainingBlockLogicalHeight() const; | 651 LayoutUnit perpendicularContainingBlockLogicalHeight() const; |
652 | 652 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
835 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con st; | 835 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con st; |
836 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const; | 836 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const; |
837 | 837 |
838 bool hasOverflowModel() const { return m_overflow; } | 838 bool hasOverflowModel() const { return m_overflow; } |
839 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); } | 839 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); } |
840 | 840 |
841 virtual bool needsPreferredWidthsRecalculation() const; | 841 virtual bool needsPreferredWidthsRecalculation() const; |
842 | 842 |
843 IntSize scrolledContentOffset() const; | 843 IntSize scrolledContentOffset() const; |
844 void mapScrollingContentsRectToBoxSpace(LayoutRect&) const; | 844 void mapScrollingContentsRectToBoxSpace(LayoutRect&) const; |
845 void applyOverflowClip(LayoutRect&) const; | 845 |
846 // Returns true if the rect actually intersects the clipping region. | |
847 // If edgeInclusive is true, then this method may return true even | |
848 // if the resulting rect has zero area. | |
849 bool applyOverflowClip(LayoutRect&, bool edgeInclusive) const; | |
846 | 850 |
847 virtual bool hasRelativeLogicalWidth() const; | 851 virtual bool hasRelativeLogicalWidth() const; |
848 virtual bool hasRelativeLogicalHeight() const; | 852 virtual bool hasRelativeLogicalHeight() const; |
849 | 853 |
850 bool hasHorizontalLayoutOverflow() const | 854 bool hasHorizontalLayoutOverflow() const |
851 { | 855 { |
852 if (!m_overflow) | 856 if (!m_overflow) |
853 return false; | 857 return false; |
854 | 858 |
855 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect(); | 859 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect(); |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1142 || breakValue == BreakLeft | 1146 || breakValue == BreakLeft |
1143 || breakValue == BreakPage | 1147 || breakValue == BreakPage |
1144 || breakValue == BreakRecto | 1148 || breakValue == BreakRecto |
1145 || breakValue == BreakRight | 1149 || breakValue == BreakRight |
1146 || breakValue == BreakVerso; | 1150 || breakValue == BreakVerso; |
1147 } | 1151 } |
1148 | 1152 |
1149 } // namespace blink | 1153 } // namespace blink |
1150 | 1154 |
1151 #endif // LayoutBox_h | 1155 #endif // LayoutBox_h |
OLD | NEW |