OLD | NEW |
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 #include "core/paint/GridPainter.h" | 5 #include "core/paint/GridPainter.h" |
6 | 6 |
| 7 #include <algorithm> |
7 #include "core/layout/LayoutGrid.h" | 8 #include "core/layout/LayoutGrid.h" |
8 #include "core/paint/BlockPainter.h" | 9 #include "core/paint/BlockPainter.h" |
9 #include "core/paint/PaintInfo.h" | 10 #include "core/paint/PaintInfo.h" |
10 #include <algorithm> | |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 static GridSpan dirtiedGridAreas(const Vector<LayoutUnit>& coordinates, | 14 static GridSpan dirtiedGridAreas(const Vector<LayoutUnit>& coordinates, |
15 LayoutUnit start, | 15 LayoutUnit start, |
16 LayoutUnit end) { | 16 LayoutUnit end) { |
17 // This function does a binary search over the coordinates. | 17 // This function does a binary search over the coordinates. |
18 // This doesn't work with grid items overflowing their grid areas, but that is | 18 // This doesn't work with grid items overflowing their grid areas, but that is |
19 // managed with m_gridItemsOverflowingGridArea. | 19 // managed with m_gridItemsOverflowingGridArea. |
20 | 20 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 if (current == previous) | 106 if (current == previous) |
107 continue; | 107 continue; |
108 | 108 |
109 BlockPainter(m_layoutGrid) | 109 BlockPainter(m_layoutGrid) |
110 .paintAllChildPhasesAtomically(*current, paintInfo, paintOffset); | 110 .paintAllChildPhasesAtomically(*current, paintInfo, paintOffset); |
111 previous = current; | 111 previous = current; |
112 } | 112 } |
113 } | 113 } |
114 | 114 |
115 } // namespace blink | 115 } // namespace blink |
OLD | NEW |