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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutGrid.h

Issue 2057113002: [css-grid] Allow percentage values for column and row gutters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch rebased. New positioned test cases and related bug fixes. Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ASSERT(!m_gridIsDirty); 63 ASSERT(!m_gridIsDirty);
64 return m_columnPositions; 64 return m_columnPositions;
65 } 65 }
66 66
67 const Vector<LayoutUnit>& rowPositions() const 67 const Vector<LayoutUnit>& rowPositions() const
68 { 68 {
69 ASSERT(!m_gridIsDirty); 69 ASSERT(!m_gridIsDirty);
70 return m_rowPositions; 70 return m_rowPositions;
71 } 71 }
72 72
73 LayoutUnit guttersSize(GridTrackSizingDirection, size_t span) const; 73 LayoutUnit guttersSize(GridTrackSizingDirection, size_t span, LayoutUnit ava ilableSize) const;
74 74
75 LayoutUnit offsetBetweenTracks(GridTrackSizingDirection direction) const 75 LayoutUnit offsetBetweenTracks(GridTrackSizingDirection direction) const
76 { 76 {
77 return direction == ForColumns ? m_offsetBetweenColumns : m_offsetBetwee nRows; 77 return direction == ForColumns ? m_offsetBetweenColumns : m_offsetBetwee nRows;
78 } 78 }
79 79
80 typedef Vector<LayoutBox*, 1> GridCell; 80 typedef Vector<LayoutBox*, 1> GridCell;
81 const GridCell& gridCell(int row, int column) const 81 const GridCell& gridCell(int row, int column) const
82 { 82 {
83 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty); 83 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 size_t m_autoRepeatColumns { 0 }; 226 size_t m_autoRepeatColumns { 0 };
227 size_t m_autoRepeatRows { 0 }; 227 size_t m_autoRepeatRows { 0 };
228 }; 228 };
229 229
230 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 230 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
231 231
232 } // namespace blink 232 } // namespace blink
233 233
234 #endif // LayoutGrid_h 234 #endif // LayoutGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698