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

Side by Side Diff: third_party/WebKit/Source/core/paint/GridPainter.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 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 // 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698