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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty); | 86 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty); |
87 return m_gridItemsOverflowingGridArea; | 87 return m_gridItemsOverflowingGridArea; |
88 } | 88 } |
89 | 89 |
90 int paintIndexForGridItem(const LayoutBox* layoutBox) const | 90 int paintIndexForGridItem(const LayoutBox* layoutBox) const |
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 LayoutUnit translateRTLCoordinate(LayoutUnit) const; |
| 97 |
96 private: | 98 private: |
97 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutGrid || LayoutBlock::isOfType(type); } | 99 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutGrid || LayoutBlock::isOfType(type); } |
98 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const override; | 100 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const override; |
99 | 101 |
100 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe
ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons
t override; | 102 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe
ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons
t override; |
101 | 103 |
102 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o
verride; | 104 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o
verride; |
103 void removeChild(LayoutObject*) override; | 105 void removeChild(LayoutObject*) override; |
104 | 106 |
105 void styleDidChange(StyleDifference, const ComputedStyle*) override; | 107 void styleDidChange(StyleDifference, const ComputedStyle*) override; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 214 |
213 int m_smallestRowStart; | 215 int m_smallestRowStart; |
214 int m_smallestColumnStart; | 216 int m_smallestColumnStart; |
215 }; | 217 }; |
216 | 218 |
217 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 219 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
218 | 220 |
219 } // namespace blink | 221 } // namespace blink |
220 | 222 |
221 #endif // LayoutGrid_h | 223 #endif // LayoutGrid_h |
OLD | NEW |