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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/TableSectionPainter.h" 5 #include "core/paint/TableSectionPainter.h"
6 6
7 #include <algorithm>
7 #include "core/layout/LayoutTableCell.h" 8 #include "core/layout/LayoutTableCell.h"
8 #include "core/layout/LayoutTableCol.h" 9 #include "core/layout/LayoutTableCol.h"
9 #include "core/layout/LayoutTableRow.h" 10 #include "core/layout/LayoutTableRow.h"
10 #include "core/paint/BoxClipper.h" 11 #include "core/paint/BoxClipper.h"
11 #include "core/paint/BoxPainter.h" 12 #include "core/paint/BoxPainter.h"
12 #include "core/paint/LayoutObjectDrawingRecorder.h" 13 #include "core/paint/LayoutObjectDrawingRecorder.h"
13 #include "core/paint/ObjectPainter.h" 14 #include "core/paint/ObjectPainter.h"
14 #include "core/paint/PaintInfo.h" 15 #include "core/paint/PaintInfo.h"
15 #include "core/paint/TableCellPainter.h" 16 #include "core/paint/TableCellPainter.h"
16 #include "core/paint/TableRowPainter.h" 17 #include "core/paint/TableRowPainter.h"
17 #include <algorithm>
18 18
19 namespace blink { 19 namespace blink {
20 20
21 inline const LayoutTableCell* TableSectionPainter::primaryCellToPaint( 21 inline const LayoutTableCell* TableSectionPainter::primaryCellToPaint(
22 unsigned row, 22 unsigned row,
23 unsigned column, 23 unsigned column,
24 const CellSpan& dirtiedRows, 24 const CellSpan& dirtiedRows,
25 const CellSpan& dirtiedColumns) const { 25 const CellSpan& dirtiedColumns) const {
26 DCHECK(row >= dirtiedRows.start() && row < dirtiedRows.end()); 26 DCHECK(row >= dirtiedRows.start() && row < dirtiedRows.end());
27 DCHECK(column >= dirtiedColumns.start() && column < dirtiedColumns.end()); 27 DCHECK(column >= dirtiedColumns.start() && column < dirtiedColumns.end());
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 m_layoutTableSection.styleRef()); 407 m_layoutTableSection.styleRef());
408 } else { 408 } else {
409 // TODO(wangxianzhu): Calculate the inset shadow bounds by insetting 409 // TODO(wangxianzhu): Calculate the inset shadow bounds by insetting
410 // paintRect by half widths of collapsed borders. 410 // paintRect by half widths of collapsed borders.
411 BoxPainter::paintInsetBoxShadow(paintInfo, paintRect, 411 BoxPainter::paintInsetBoxShadow(paintInfo, paintRect,
412 m_layoutTableSection.styleRef()); 412 m_layoutTableSection.styleRef());
413 } 413 }
414 } 414 }
415 415
416 } // namespace blink 416 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/TablePainter.cpp ('k') | third_party/WebKit/Source/core/paint/TextPainterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698