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

Unified Diff: Source/core/rendering/style/RenderStyleConstants.h

Issue 333563003: [CSS Grid Layout] Update grid-auto-flow to the new syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: New version Created 6 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
Index: Source/core/rendering/style/RenderStyleConstants.h
diff --git a/Source/core/rendering/style/RenderStyleConstants.h b/Source/core/rendering/style/RenderStyleConstants.h
index b0585fc78b564c2b64acc44670daea5b27c8eff2..e0142d11af77e0c60ba652d81a19798e5baf619a 100644
--- a/Source/core/rendering/style/RenderStyleConstants.h
+++ b/Source/core/rendering/style/RenderStyleConstants.h
@@ -483,7 +483,26 @@ enum WrapThrough { WrapThroughWrap, WrapThroughNone };
enum RubyPosition { RubyPositionBefore, RubyPositionAfter };
-enum GridAutoFlow { AutoFlowNone, AutoFlowColumn, AutoFlowRow };
+static const size_t GridAutoFlowBits = 5;
+enum GridAutoFlowAlgorithm {
+ AutoFlowAlgorithmSparse = 0x1,
+ AutoFlowAlgorithmDense = 0x2,
+ AutoFlowAlgorithmStack = 0x4
+};
+
+enum GridAutoFlowDirection {
Julien - ping for review 2014/06/29 01:02:25 I would put internal in the names to underline tha
+ AutoFlowDirectionRow = 0x8,
+ AutoFlowDirectionColumn = 0x10
+};
+
+enum GridAutoFlow {
+ AutoFlowRow = AutoFlowAlgorithmSparse | AutoFlowDirectionRow,
+ AutoFlowColumn = AutoFlowAlgorithmSparse | AutoFlowDirectionColumn,
+ AutoFlowRowDense = AutoFlowAlgorithmDense | AutoFlowDirectionRow,
+ AutoFlowColumnDense = AutoFlowAlgorithmDense | AutoFlowDirectionColumn,
+ AutoFlowStackRow = AutoFlowAlgorithmStack | AutoFlowDirectionRow,
+ AutoFlowStackColumn = AutoFlowAlgorithmStack | AutoFlowDirectionColumn
+};
enum DraggableRegionMode { DraggableRegionNone, DraggableRegionDrag, DraggableRegionNoDrag };

Powered by Google App Engine
This is Rietveld 408576698