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

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: Remove unneeded line in test. 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void layoutGridItems(GridSizingData&); 177 void layoutGridItems(GridSizingData&);
178 void prepareChildForPositionedLayout(LayoutBox&); 178 void prepareChildForPositionedLayout(LayoutBox&);
179 void layoutPositionedObjects(bool relayoutChildren, 179 void layoutPositionedObjects(
180 PositionedLayoutBehavior = DefaultLayout); 180 bool relayoutChildren,
181 PositionedLayoutBehavior = DefaultLayout) override;
181 void offsetAndBreadthForPositionedChild(const LayoutBox&, 182 void offsetAndBreadthForPositionedChild(const LayoutBox&,
182 GridTrackSizingDirection, 183 GridTrackSizingDirection,
183 LayoutUnit& offset, 184 LayoutUnit& offset,
184 LayoutUnit& breadth); 185 LayoutUnit& breadth);
185 void populateGridPositionsForDirection(GridSizingData&, 186 void populateGridPositionsForDirection(GridSizingData&,
186 GridTrackSizingDirection); 187 GridTrackSizingDirection);
187 188
188 typedef struct GridItemsSpanGroupRange GridItemsSpanGroupRange; 189 typedef struct GridItemsSpanGroupRange GridItemsSpanGroupRange;
189 LayoutUnit currentItemSizeForTrackSizeComputationPhase( 190 LayoutUnit currentItemSizeForTrackSizeComputationPhase(
190 TrackSizeComputationPhase, 191 TrackSizeComputationPhase,
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr}; 365 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr};
365 366
366 Optional<bool> m_hasDefiniteLogicalHeight; 367 Optional<bool> m_hasDefiniteLogicalHeight;
367 }; 368 };
368 369
369 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 370 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
370 371
371 } // namespace blink 372 } // namespace blink
372 373
373 #endif // LayoutGrid_h 374 #endif // LayoutGrid_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698