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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 LayoutRect logicalVisualOverflowRectForPropagation(const ComputedStyle&) con
st; | 818 LayoutRect logicalVisualOverflowRectForPropagation(const ComputedStyle&) con
st; |
819 LayoutRect visualOverflowRectForPropagation(const ComputedStyle&) const; | 819 LayoutRect visualOverflowRectForPropagation(const ComputedStyle&) const; |
820 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con
st; | 820 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con
st; |
821 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const; | 821 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const; |
822 | 822 |
823 bool hasOverflowModel() const { return m_overflow; } | 823 bool hasOverflowModel() const { return m_overflow; } |
824 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta
ins(m_overflow->visualOverflowRect()); } | 824 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta
ins(m_overflow->visualOverflowRect()); } |
825 | 825 |
826 virtual bool needsPreferredWidthsRecalculation() const; | 826 virtual bool needsPreferredWidthsRecalculation() const; |
827 | 827 |
828 struct IntrinsicSizingInfo { | |
829 STACK_ALLOCATED(); | |
830 IntrinsicSizingInfo() : hasWidth(true), hasHeight(true) {} | |
831 | |
832 FloatSize size; | |
833 FloatSize aspectRatio; | |
834 bool hasWidth; | |
835 bool hasHeight; | |
836 | |
837 void transpose(); | |
838 }; | |
839 | |
840 // Computes the logical intrinsic sizing information. | |
841 virtual void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const { } | |
842 | |
843 IntSize scrolledContentOffset() const; | 828 IntSize scrolledContentOffset() const; |
844 void mapScrollingContentsRectToBoxSpace(LayoutRect&) const; | 829 void mapScrollingContentsRectToBoxSpace(LayoutRect&) const; |
845 void applyOverflowClip(LayoutRect&) const; | 830 void applyOverflowClip(LayoutRect&) const; |
846 | 831 |
847 virtual bool hasRelativeLogicalWidth() const; | 832 virtual bool hasRelativeLogicalWidth() const; |
848 virtual bool hasRelativeLogicalHeight() const; | 833 virtual bool hasRelativeLogicalHeight() const; |
849 | 834 |
850 bool hasHorizontalLayoutOverflow() const | 835 bool hasHorizontalLayoutOverflow() const |
851 { | 836 { |
852 if (!m_overflow) | 837 if (!m_overflow) |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 if (UNLIKELY(m_inlineBoxWrapper != nullptr)) | 1117 if (UNLIKELY(m_inlineBoxWrapper != nullptr)) |
1133 deleteLineBoxWrapper(); | 1118 deleteLineBoxWrapper(); |
1134 } | 1119 } |
1135 | 1120 |
1136 m_inlineBoxWrapper = boxWrapper; | 1121 m_inlineBoxWrapper = boxWrapper; |
1137 } | 1122 } |
1138 | 1123 |
1139 } // namespace blink | 1124 } // namespace blink |
1140 | 1125 |
1141 #endif // LayoutBox_h | 1126 #endif // LayoutBox_h |
OLD | NEW |