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

Side by Side Diff: Source/core/rendering/RenderGrid.h

Issue 637033003: [CSS Grid Layout] Fix positioned grid children position and size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor fix in a comment Created 6 years, 2 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 LayoutUnit centeredColumnPositionForChild(const RenderBox&) const; 118 LayoutUnit centeredColumnPositionForChild(const RenderBox&) const;
119 LayoutUnit columnPositionForChild(const RenderBox&) const; 119 LayoutUnit columnPositionForChild(const RenderBox&) const;
120 LayoutUnit startOfRowForChild(const RenderBox& child) const; 120 LayoutUnit startOfRowForChild(const RenderBox& child) const;
121 LayoutUnit endOfRowForChild(const RenderBox& child) const; 121 LayoutUnit endOfRowForChild(const RenderBox& child) const;
122 LayoutUnit centeredRowPositionForChild(const RenderBox&) const; 122 LayoutUnit centeredRowPositionForChild(const RenderBox&) const;
123 LayoutUnit rowPositionForChild(const RenderBox&) const; 123 LayoutUnit rowPositionForChild(const RenderBox&) const;
124 LayoutPoint findChildLogicalPosition(const RenderBox&) const; 124 LayoutPoint findChildLogicalPosition(const RenderBox&) const;
125 GridCoordinate cachedGridCoordinate(const RenderBox&) const; 125 GridCoordinate cachedGridCoordinate(const RenderBox&) const;
126 126
127 LayoutUnit gridAreaBreadthForChild(const RenderBox& child, GridTrackSizingDi rection, const Vector<GridTrack>&) const; 127 LayoutUnit gridAreaBreadthForChild(const RenderBox& child, GridTrackSizingDi rection, const Vector<GridTrack>&) const;
128 LayoutUnit gridAreaBreadthForAbsolutelyPositionedChild(const RenderBox& chil d, GridTrackSizingDirection, const Vector<GridTrack>&, LayoutUnit& extraInitialO ffset) const;
129
130 bool isAbsolutelyPositionedGridItemWithContainingBlockThis(const RenderBox& child) const;
128 131
129 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE; 132 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE;
130 133
131 #if ENABLE(ASSERT) 134 #if ENABLE(ASSERT)
132 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto r<GridTrack>&); 135 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto r<GridTrack>&);
133 #endif 136 #endif
134 137
135 size_t gridItemSpan(const RenderBox&, GridTrackSizingDirection); 138 size_t gridItemSpan(const RenderBox&, GridTrackSizingDirection);
136 139
137 size_t gridColumnCount() const 140 size_t gridColumnCount() const
(...skipping 16 matching lines...) Expand all
154 OrderIterator m_orderIterator; 157 OrderIterator m_orderIterator;
155 Vector<RenderBox*> m_gridItemsOverflowingGridArea; 158 Vector<RenderBox*> m_gridItemsOverflowingGridArea;
156 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; 159 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap;
157 }; 160 };
158 161
159 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); 162 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid());
160 163
161 } // namespace blink 164 } // namespace blink
162 165
163 #endif // RenderGrid_h 166 #endif // RenderGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698