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

Unified Diff: Source/core/layout/LayoutGrid.h

Issue 1298623002: [CSS Grid Layout] Implement auto-margins alignment of grid items (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/LayoutGrid.h
diff --git a/Source/core/layout/LayoutGrid.h b/Source/core/layout/LayoutGrid.h
index 275673d0f5ecb085af173ef03745e13f3a72853a..82e94bd8fe540b8dc87cb08047a200e72ad9ab8a 100644
--- a/Source/core/layout/LayoutGrid.h
+++ b/Source/core/layout/LayoutGrid.h
@@ -166,6 +166,11 @@ private:
LayoutUnit computeMarginLogicalHeightForChild(const LayoutBox&) const;
LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAreaBreadthForChild, const LayoutBox&) const;
void applyStretchAlignmentToChildIfNeeded(LayoutBox&);
+ bool hasAutoMarginsInColumnAxis(const LayoutBox&) const;
+ bool hasAutoMarginsInRowAxis(const LayoutBox&) const;
+ void resetAutoMarginsAndLogicalTopInColumnAxis(LayoutBox&);
+ void updateAutoMarginsInColumnAxisIfNeeded(LayoutBox&);
+ void updateAutoMarginsInRowAxisIfNeeded(LayoutBox&);
#if ENABLE(ASSERT)
bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vector<GridTrack>&);

Powered by Google App Engine
This is Rietveld 408576698