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

Side by Side Diff: third_party/WebKit/Source/core/style/GridResolvedPosition.h

Issue 1496863004: [css-grid] Simplify method to resolve auto-placed items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kill-grid-resolved-position
Patch Set: Applying suggested changes Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GridResolvedPosition_h 5 #ifndef GridResolvedPosition_h
6 #define GridResolvedPosition_h 6 #define GridResolvedPosition_h
7 7
8 #include "core/style/GridPosition.h" 8 #include "core/style/GridPosition.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 10
(...skipping 22 matching lines...) Expand all
33 public: 33 public:
34 34
35 static size_t explicitGridColumnCount(const ComputedStyle&); 35 static size_t explicitGridColumnCount(const ComputedStyle&);
36 static size_t explicitGridRowCount(const ComputedStyle&); 36 static size_t explicitGridRowCount(const ComputedStyle&);
37 37
38 static bool isValidNamedLineOrArea(const String& lineName, const ComputedSty le&, GridPositionSide); 38 static bool isValidNamedLineOrArea(const String& lineName, const ComputedSty le&, GridPositionSide);
39 39
40 static GridPositionSide initialPositionSide(GridTrackSizingDirection); 40 static GridPositionSide initialPositionSide(GridTrackSizingDirection);
41 static GridPositionSide finalPositionSide(GridTrackSizingDirection); 41 static GridPositionSide finalPositionSide(GridTrackSizingDirection);
42 42
43 static GridSpan resolveGridPositionsFromAutoPlacementPosition(const Computed Style&, const LayoutBox&, GridTrackSizingDirection, size_t resolvedInitialPositi on); 43 static size_t spanSizeForAutoPlacedItem(const ComputedStyle&, const LayoutBo x&, GridTrackSizingDirection);
44 static GridSpan resolveGridPositionsFromStyle(const ComputedStyle&, const La youtBox&, GridTrackSizingDirection); 44 static GridSpan resolveGridPositionsFromStyle(const ComputedStyle&, const La youtBox&, GridTrackSizingDirection);
45 45
46 }; 46 };
47 47
48 } // namespace blink 48 } // namespace blink
49 49
50 #endif // GridResolvedPosition_h 50 #endif // GridResolvedPosition_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGrid.cpp ('k') | third_party/WebKit/Source/core/style/GridResolvedPosition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698