OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 { | 91 { |
92 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty); | 92 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty); |
93 return m_gridItemsIndexesMap.get(layoutBox); | 93 return m_gridItemsIndexesMap.get(layoutBox); |
94 } | 94 } |
95 | 95 |
96 size_t autoRepeatCountForDirection(GridTrackSizingDirection direction) const | 96 size_t autoRepeatCountForDirection(GridTrackSizingDirection direction) const |
97 { | 97 { |
98 return direction == ForColumns ? m_autoRepeatColumns : m_autoRepeatRows; | 98 return direction == ForColumns ? m_autoRepeatColumns : m_autoRepeatRows; |
99 } | 99 } |
100 | 100 |
| 101 LayoutUnit translateRTLCoordinate(LayoutUnit) const; |
| 102 |
101 private: | 103 private: |
102 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutGrid || LayoutBlock::isOfType(type); } | 104 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutGrid || LayoutBlock::isOfType(type); } |
103 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const override; | 105 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const override; |
104 | 106 |
105 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe
ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons
t override; | 107 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe
ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons
t override; |
106 | 108 |
107 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o
verride; | 109 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o
verride; |
108 void removeChild(LayoutObject*) override; | 110 void removeChild(LayoutObject*) override; |
109 | 111 |
110 void styleDidChange(StyleDifference, const ComputedStyle*) override; | 112 void styleDidChange(StyleDifference, const ComputedStyle*) override; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 231 |
230 size_t m_autoRepeatColumns { 0 }; | 232 size_t m_autoRepeatColumns { 0 }; |
231 size_t m_autoRepeatRows { 0 }; | 233 size_t m_autoRepeatRows { 0 }; |
232 }; | 234 }; |
233 | 235 |
234 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 236 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
235 | 237 |
236 } // namespace blink | 238 } // namespace blink |
237 | 239 |
238 #endif // LayoutGrid_h | 240 #endif // LayoutGrid_h |
OLD | NEW |