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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 // Our intrinsic height, used for min-height: min-content etc. Maintained by | 841 // Our intrinsic height, used for min-height: min-content etc. Maintained by |
842 // updateLogicalHeight. This is logicalHeight() before it is clamped to | 842 // updateLogicalHeight. This is logicalHeight() before it is clamped to |
843 // min/max. | 843 // min/max. |
844 mutable LayoutUnit m_intrinsicContentLogicalHeight; | 844 mutable LayoutUnit m_intrinsicContentLogicalHeight; |
845 | 845 |
846 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const; | 846 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const; |
847 | 847 |
848 LayoutRectOutsets m_marginBoxOutsets; | 848 LayoutRectOutsets m_marginBoxOutsets; |
849 | 849 |
850 protected: | 850 protected: |
851 // The preferred logical width of the element if it were to break its lines
at every possible opportunity. | 851 // The preferred logical width of the element if it were to break its lines
at every |
| 852 // possible opportunity. CSS 2.1 calls this width the "preferred minimum wid
th" and |
| 853 // "minimum content width". |
| 854 // See https://drafts.csswg.org/css-sizing-3/#intrinsic for more information
. |
852 LayoutUnit m_minPreferredLogicalWidth; | 855 LayoutUnit m_minPreferredLogicalWidth; |
853 | 856 |
854 // The preferred logical width of the element if it never breaks any lines a
t all. | 857 // The preferred logical width of the element if it never breaks any lines a
t all. |
| 858 // CSS 2.1 calls this width the "preferred width" and "maximum cell width". |
| 859 // See https://drafts.csswg.org/css-sizing-3/#intrinsic for more information
. |
855 LayoutUnit m_maxPreferredLogicalWidth; | 860 LayoutUnit m_maxPreferredLogicalWidth; |
856 | 861 |
857 // Our overflow information. | 862 // Our overflow information. |
858 OwnPtr<OverflowModel> m_overflow; | 863 OwnPtr<OverflowModel> m_overflow; |
859 | 864 |
860 private: | 865 private: |
861 OwnPtr<LayoutBoxRareData> m_rareData; | 866 OwnPtr<LayoutBoxRareData> m_rareData; |
862 }; | 867 }; |
863 | 868 |
864 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBox, isBox()); | 869 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBox, isBox()); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 if (UNLIKELY(inlineBoxWrapper() != nullptr)) | 935 if (UNLIKELY(inlineBoxWrapper() != nullptr)) |
931 deleteLineBoxWrapper(); | 936 deleteLineBoxWrapper(); |
932 } | 937 } |
933 | 938 |
934 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 939 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
935 } | 940 } |
936 | 941 |
937 } // namespace blink | 942 } // namespace blink |
938 | 943 |
939 #endif // LayoutBox_h | 944 #endif // LayoutBox_h |
OLD | NEW |