Chromium Code Reviews| 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 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 858 | 858 |
| 859 // The preferred logical width of the element if it never breaks any lines a t all. | 859 // The preferred logical width of the element if it never breaks any lines a t all. |
| 860 // CSS 2.1 calls this width the "preferred width" and "maximum cell width". | 860 // CSS 2.1 calls this width the "preferred width" and "maximum cell width". |
| 861 // See https://drafts.csswg.org/css-sizing-3/#intrinsic for more information . | 861 // See https://drafts.csswg.org/css-sizing-3/#intrinsic for more information . |
| 862 LayoutUnit m_maxPreferredLogicalWidth; | 862 LayoutUnit m_maxPreferredLogicalWidth; |
| 863 | 863 |
| 864 // Our overflow information. | 864 // Our overflow information. |
| 865 OwnPtr<OverflowModel> m_overflow; | 865 OwnPtr<OverflowModel> m_overflow; |
| 866 | 866 |
| 867 private: | 867 private: |
| 868 LayoutRect frameRectForStickyPositioning() const override final { return fra meRect(); } | |
|
chrishtr
2015/10/06 17:08:33
final implies override
flackr
2015/10/07 20:38:12
Done.
| |
| 869 | |
| 868 OwnPtr<LayoutBoxRareData> m_rareData; | 870 OwnPtr<LayoutBoxRareData> m_rareData; |
| 869 }; | 871 }; |
| 870 | 872 |
| 871 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBox, isBox()); | 873 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBox, isBox()); |
| 872 | 874 |
| 873 inline LayoutBox* LayoutBox::previousSiblingBox() const | 875 inline LayoutBox* LayoutBox::previousSiblingBox() const |
| 874 { | 876 { |
| 875 return toLayoutBox(previousSibling()); | 877 return toLayoutBox(previousSibling()); |
| 876 } | 878 } |
| 877 | 879 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 937 if (UNLIKELY(inlineBoxWrapper() != nullptr)) | 939 if (UNLIKELY(inlineBoxWrapper() != nullptr)) |
| 938 deleteLineBoxWrapper(); | 940 deleteLineBoxWrapper(); |
| 939 } | 941 } |
| 940 | 942 |
| 941 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 943 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 942 } | 944 } |
| 943 | 945 |
| 944 } // namespace blink | 946 } // namespace blink |
| 945 | 947 |
| 946 #endif // LayoutBox_h | 948 #endif // LayoutBox_h |
| OLD | NEW |