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

Unified Diff: Source/core/rendering/RenderGrid.h

Issue 18345011: Move GridCoordinate and GridSpan to a separate file (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: --no-find-copies to avoid bad copy detection Created 7 years, 6 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/rendering/RenderGrid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderGrid.h
diff --git a/Source/core/rendering/RenderGrid.h b/Source/core/rendering/RenderGrid.h
index e51c478e6bad80369ddf4ee938189815325ad016..074f8597bb85d60d552590662bb2605f4d1805aa 100644
--- a/Source/core/rendering/RenderGrid.h
+++ b/Source/core/rendering/RenderGrid.h
@@ -30,6 +30,8 @@
namespace WebCore {
+class GridCoordinate;
+class GridSpan;
class GridTrack;
enum GridPositionSide {
@@ -58,41 +60,6 @@ private:
LayoutUnit computePreferredTrackWidth(const GridLength&, size_t) const;
- struct GridSpan {
- static PassOwnPtr<GridSpan> create(size_t initialPosition, size_t finalPosition)
- {
- return adoptPtr(new GridSpan(initialPosition, finalPosition));
- }
-
- GridSpan(size_t initialPosition, size_t finalPosition)
- : initialPositionIndex(initialPosition)
- , finalPositionIndex(finalPosition)
- {
- ASSERT(initialPositionIndex <= finalPositionIndex);
- }
-
- size_t initialPositionIndex;
- size_t finalPositionIndex;
- };
-
- struct GridCoordinate {
- // HashMap requires a default constuctor.
- GridCoordinate()
- : columns(0, 0)
- , rows(0, 0)
- {
- }
-
- GridCoordinate(const GridSpan& r, const GridSpan& c)
- : columns(c)
- , rows(r)
- {
- }
-
- GridSpan columns;
- GridSpan rows;
- };
-
class GridIterator;
enum TrackSizingDirection { ForColumns, ForRows };
void computedUsedBreadthOfGridTracks(TrackSizingDirection, Vector<GridTrack>& columnTracks, Vector<GridTrack>& rowTracks);
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/rendering/RenderGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698