Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutGrid.h

Issue 2471283004: [css-grid] Fix simplified layout of positioned grid items (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 LayoutUnit& maxIntrinsicSize) const; 167 LayoutUnit& maxIntrinsicSize) const;
168 LayoutUnit computeTrackBasedLogicalHeight(const GridSizingData&) const; 168 LayoutUnit computeTrackBasedLogicalHeight(const GridSizingData&) const;
169 void computeTrackSizesForDefiniteSize(GridTrackSizingDirection, 169 void computeTrackSizesForDefiniteSize(GridTrackSizingDirection,
170 GridSizingData&, 170 GridSizingData&,
171 LayoutUnit freeSpace) const; 171 LayoutUnit freeSpace) const;
172 172
173 void repeatTracksSizingIfNeeded(GridSizingData&, 173 void repeatTracksSizingIfNeeded(GridSizingData&,
174 LayoutUnit availableSpaceForColumns, 174 LayoutUnit availableSpaceForColumns,
175 LayoutUnit availableSpaceForRows); 175 LayoutUnit availableSpaceForRows);
176 176
177 bool simplifiedLayout() override;
177 void layoutGridItems(GridSizingData&); 178 void layoutGridItems(GridSizingData&);
178 void prepareChildForPositionedLayout(LayoutBox&); 179 void prepareChildForPositionedLayout(LayoutBox&);
179 void layoutPositionedObjects(bool relayoutChildren, 180 void layoutPositionedObjects(
180 PositionedLayoutBehavior = DefaultLayout); 181 bool relayoutChildren,
182 PositionedLayoutBehavior = DefaultLayout) override;
181 void offsetAndBreadthForPositionedChild(const LayoutBox&, 183 void offsetAndBreadthForPositionedChild(const LayoutBox&,
182 GridTrackSizingDirection, 184 GridTrackSizingDirection,
183 LayoutUnit& offset, 185 LayoutUnit& offset,
184 LayoutUnit& breadth); 186 LayoutUnit& breadth);
185 void populateGridPositionsForDirection(GridSizingData&, 187 void populateGridPositionsForDirection(GridSizingData&,
186 GridTrackSizingDirection); 188 GridTrackSizingDirection);
187 189
188 typedef struct GridItemsSpanGroupRange GridItemsSpanGroupRange; 190 typedef struct GridItemsSpanGroupRange GridItemsSpanGroupRange;
189 LayoutUnit currentItemSizeForTrackSizeComputationPhase( 191 LayoutUnit currentItemSizeForTrackSizeComputationPhase(
190 TrackSizeComputationPhase, 192 TrackSizeComputationPhase,
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr}; 366 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr};
365 367
366 Optional<bool> m_hasDefiniteLogicalHeight; 368 Optional<bool> m_hasDefiniteLogicalHeight;
367 }; 369 };
368 370
369 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 371 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
370 372
371 } // namespace blink 373 } // namespace blink
372 374
373 #endif // LayoutGrid_h 375 #endif // LayoutGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698