| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 if (current == previous) | 108 if (current == previous) |
| 109 continue; | 109 continue; |
| 110 | 110 |
| 111 BlockPainter(layout_grid_) | 111 BlockPainter(layout_grid_) |
| 112 .PaintAllChildPhasesAtomically(*current, paint_info, paint_offset); | 112 .PaintAllChildPhasesAtomically(*current, paint_info, paint_offset); |
| 113 previous = current; | 113 previous = current; |
| 114 } | 114 } |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace blink | 117 } // namespace blink |
| OLD | NEW |