Index: Source/core/rendering/style/GridCoordinate.h |
diff --git a/Source/core/rendering/style/GridCoordinate.h b/Source/core/rendering/style/GridCoordinate.h |
index 196a7e3fee07d7d03b6d3912483e4392a23b790d..951c259c5eebada5ec8772bc287ddba4fd09ee7c 100644 |
--- a/Source/core/rendering/style/GridCoordinate.h |
+++ b/Source/core/rendering/style/GridCoordinate.h |
@@ -155,6 +155,22 @@ struct GridCoordinate { |
return !(*this == o); |
} |
+ GridResolvedPosition positionForSide(GridPositionSide side) const |
+ { |
+ switch (side) { |
+ case ColumnStartSide: |
+ return columns.resolvedInitialPosition; |
+ case ColumnEndSide: |
+ return columns.resolvedFinalPosition; |
+ case RowStartSide: |
+ return rows.resolvedInitialPosition; |
+ case RowEndSide: |
+ return rows.resolvedFinalPosition; |
+ } |
+ ASSERT_NOT_REACHED(); |
+ return 0; |
+ } |
+ |
GridSpan columns; |
GridSpan rows; |
}; |