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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 SizingOperation) const; | 262 SizingOperation) const; |
263 | 263 |
264 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection); | 264 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection); |
265 | 265 |
266 GridTrackSizingDirection flowAwareDirectionForChild( | 266 GridTrackSizingDirection flowAwareDirectionForChild( |
267 const LayoutBox&, | 267 const LayoutBox&, |
268 GridTrackSizingDirection) const; | 268 GridTrackSizingDirection) const; |
269 | 269 |
270 size_t numTracks(GridTrackSizingDirection, const Grid&) const; | 270 size_t numTracks(GridTrackSizingDirection, const Grid&) const; |
271 | 271 |
| 272 static LayoutUnit overrideContainingBlockContentSizeForChild( |
| 273 const LayoutBox& child, |
| 274 GridTrackSizingDirection); |
| 275 static int synthesizedBaselineFromContentBox(const LayoutBox&, |
| 276 LineDirectionMode); |
| 277 static int synthesizedBaselineFromBorderBox(const LayoutBox&, |
| 278 LineDirectionMode); |
| 279 static const StyleContentAlignmentData& contentAlignmentNormalBehavior(); |
| 280 |
272 typedef HashMap<unsigned, | 281 typedef HashMap<unsigned, |
273 std::unique_ptr<BaselineContext>, | 282 std::unique_ptr<BaselineContext>, |
274 DefaultHash<unsigned>::Hash, | 283 DefaultHash<unsigned>::Hash, |
275 WTF::UnsignedWithZeroKeyHashTraits<unsigned>> | 284 WTF::UnsignedWithZeroKeyHashTraits<unsigned>> |
276 BaselineContextsMap; | 285 BaselineContextsMap; |
277 | 286 |
278 BaselineContextsMap m_rowAxisAlignmentContext; | 287 BaselineContextsMap m_rowAxisAlignmentContext; |
279 BaselineContextsMap m_colAxisAlignmentContext; | 288 BaselineContextsMap m_colAxisAlignmentContext; |
280 | 289 |
281 Grid m_grid; | 290 Grid m_grid; |
282 GridTrackSizingAlgorithm m_trackSizingAlgorithm; | 291 GridTrackSizingAlgorithm m_trackSizingAlgorithm; |
283 | 292 |
284 Vector<LayoutUnit> m_rowPositions; | 293 Vector<LayoutUnit> m_rowPositions; |
285 Vector<LayoutUnit> m_columnPositions; | 294 Vector<LayoutUnit> m_columnPositions; |
286 LayoutUnit m_offsetBetweenColumns; | 295 LayoutUnit m_offsetBetweenColumns; |
287 LayoutUnit m_offsetBetweenRows; | 296 LayoutUnit m_offsetBetweenRows; |
288 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; | 297 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; |
289 | 298 |
290 LayoutUnit m_minContentHeight{-1}; | 299 LayoutUnit m_minContentHeight{-1}; |
291 LayoutUnit m_maxContentHeight{-1}; | 300 LayoutUnit m_maxContentHeight{-1}; |
292 | 301 |
293 Optional<bool> m_hasDefiniteLogicalHeight; | 302 Optional<bool> m_hasDefiniteLogicalHeight; |
294 }; | 303 }; |
295 | 304 |
296 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 305 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
297 | 306 |
298 } // namespace blink | 307 } // namespace blink |
299 | 308 |
300 #endif // LayoutGrid_h | 309 #endif // LayoutGrid_h |
OLD | NEW |