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

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

Issue 569683004: Factor painting code from RenderBlock into BlockPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderFlexibleBox.cpp ('k') | Source/core/rendering/RenderGrid.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 LayoutUnit startOfRowForChild(const RenderBox& child) const; 113 LayoutUnit startOfRowForChild(const RenderBox& child) const;
114 LayoutUnit endOfRowForChild(const RenderBox& child) const; 114 LayoutUnit endOfRowForChild(const RenderBox& child) const;
115 LayoutUnit centeredRowPositionForChild(const RenderBox&) const; 115 LayoutUnit centeredRowPositionForChild(const RenderBox&) const;
116 LayoutUnit rowPositionForChild(const RenderBox&) const; 116 LayoutUnit rowPositionForChild(const RenderBox&) const;
117 LayoutPoint findChildLogicalPosition(const RenderBox&) const; 117 LayoutPoint findChildLogicalPosition(const RenderBox&) const;
118 GridCoordinate cachedGridCoordinate(const RenderBox&) const; 118 GridCoordinate cachedGridCoordinate(const RenderBox&) const;
119 119
120 LayoutUnit gridAreaBreadthForChild(const RenderBox& child, GridTrackSizingDi rection, const Vector<GridTrack>&) const; 120 LayoutUnit gridAreaBreadthForChild(const RenderBox& child, GridTrackSizingDi rection, const Vector<GridTrack>&) const;
121 121
122 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE; 122 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE;
123 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&);
123 124
124 bool gridIsDirty() const { return m_gridIsDirty; } 125 bool gridIsDirty() const { return m_gridIsDirty; }
125 126
126 #if ENABLE(ASSERT) 127 #if ENABLE(ASSERT)
127 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto r<GridTrack>&); 128 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto r<GridTrack>&);
128 #endif 129 #endif
129 130
130 size_t gridItemSpan(const RenderBox&, GridTrackSizingDirection); 131 size_t gridItemSpan(const RenderBox&, GridTrackSizingDirection);
131 132
132 size_t gridColumnCount() const 133 size_t gridColumnCount() const
(...skipping 17 matching lines...) Expand all
150 OrderIterator m_orderIterator; 151 OrderIterator m_orderIterator;
151 Vector<RenderBox*> m_gridItemsOverflowingGridArea; 152 Vector<RenderBox*> m_gridItemsOverflowingGridArea;
152 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; 153 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap;
153 }; 154 };
154 155
155 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); 156 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid());
156 157
157 } // namespace blink 158 } // namespace blink
158 159
159 #endif // RenderGrid_h 160 #endif // RenderGrid_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderFlexibleBox.cpp ('k') | Source/core/rendering/RenderGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698