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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 LayoutBlock* m_percentHeightContainer; | 88 LayoutBlock* m_percentHeightContainer; |
89 // For snap area, the owning snap container. | 89 // For snap area, the owning snap container. |
90 LayoutBox* m_snapContainer; | 90 LayoutBox* m_snapContainer; |
91 // For snap container, the descendant snap areas that contribute snap | 91 // For snap container, the descendant snap areas that contribute snap |
92 // points. | 92 // points. |
93 std::unique_ptr<SnapAreaSet> m_snapAreas; | 93 std::unique_ptr<SnapAreaSet> m_snapAreas; |
94 | 94 |
95 SnapAreaSet& ensureSnapAreas() { | 95 SnapAreaSet& ensureSnapAreas() { |
96 if (!m_snapAreas) | 96 if (!m_snapAreas) |
97 m_snapAreas = wrapUnique(new SnapAreaSet); | 97 m_snapAreas = WTF::wrapUnique(new SnapAreaSet); |
98 | 98 |
99 return *m_snapAreas; | 99 return *m_snapAreas; |
100 } | 100 } |
101 }; | 101 }; |
102 | 102 |
103 // LayoutBox implements the full CSS box model. | 103 // LayoutBox implements the full CSS box model. |
104 // | 104 // |
105 // LayoutBoxModelObject only introduces some abstractions for LayoutInline and | 105 // LayoutBoxModelObject only introduces some abstractions for LayoutInline and |
106 // LayoutBox. The logic for the model is in LayoutBox, e.g. the storage for the | 106 // LayoutBox. The logic for the model is in LayoutBox, e.g. the storage for the |
107 // rectangle and offset forming the CSS box (m_frameRect) and the getters for | 107 // rectangle and offset forming the CSS box (m_frameRect) and the getters for |
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1476 // boolean before returning. | 1476 // boolean before returning. |
1477 // | 1477 // |
1478 // See INTRINSIC SIZES / PREFERRED LOGICAL WIDTHS in LayoutObject.h for more | 1478 // See INTRINSIC SIZES / PREFERRED LOGICAL WIDTHS in LayoutObject.h for more |
1479 // details about those widths. | 1479 // details about those widths. |
1480 virtual void computePreferredLogicalWidths() { | 1480 virtual void computePreferredLogicalWidths() { |
1481 clearPreferredLogicalWidthsDirty(); | 1481 clearPreferredLogicalWidthsDirty(); |
1482 } | 1482 } |
1483 | 1483 |
1484 LayoutBoxRareData& ensureRareData() { | 1484 LayoutBoxRareData& ensureRareData() { |
1485 if (!m_rareData) | 1485 if (!m_rareData) |
1486 m_rareData = makeUnique<LayoutBoxRareData>(); | 1486 m_rareData = WTF::makeUnique<LayoutBoxRareData>(); |
1487 return *m_rareData.get(); | 1487 return *m_rareData.get(); |
1488 } | 1488 } |
1489 | 1489 |
1490 bool logicalHeightComputesAsNone(SizeType) const; | 1490 bool logicalHeightComputesAsNone(SizeType) const; |
1491 | 1491 |
1492 bool isBox() const = | 1492 bool isBox() const = |
1493 delete; // This will catch anyone doing an unnecessary check. | 1493 delete; // This will catch anyone doing an unnecessary check. |
1494 | 1494 |
1495 void frameRectChanged(); | 1495 void frameRectChanged(); |
1496 | 1496 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1623 | 1623 |
1624 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { | 1624 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { |
1625 return breakValue == BreakColumn || breakValue == BreakLeft || | 1625 return breakValue == BreakColumn || breakValue == BreakLeft || |
1626 breakValue == BreakPage || breakValue == BreakRecto || | 1626 breakValue == BreakPage || breakValue == BreakRecto || |
1627 breakValue == BreakRight || breakValue == BreakVerso; | 1627 breakValue == BreakRight || breakValue == BreakVerso; |
1628 } | 1628 } |
1629 | 1629 |
1630 } // namespace blink | 1630 } // namespace blink |
1631 | 1631 |
1632 #endif // LayoutBox_h | 1632 #endif // LayoutBox_h |
OLD | NEW |