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

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

Issue 1233983003: [CSS Grid Layout] Implement auto-margin alignment for grid (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@horizontal-stretch
Patch Set: Created 5 years, 5 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 ae6a60ab929d77e1e94c1e084462d7b485c5166c..9652beee0789910ff050d3f5103208200d946e41 100644
--- a/Source/core/layout/LayoutGrid.h
+++ b/Source/core/layout/LayoutGrid.h
@@ -168,6 +168,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>&);
« no previous file with comments | « LayoutTests/fast/css-grid-layout/grid-item-auto-margins-and-stretch.html ('k') | Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698