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

Side by Side Diff: third_party/WebKit/Source/core/paint/TablePainter.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/TablePainter.h" 5 #include "core/paint/TablePainter.h"
6 6
7 #include "core/layout/LayoutTable.h" 7 #include "core/layout/LayoutTable.h"
8 #include "core/layout/LayoutTableSection.h" 8 #include "core/layout/LayoutTableSection.h"
9 #include "core/style/CollapsedBorderValue.h"
10 #include "core/paint/BoxClipper.h" 9 #include "core/paint/BoxClipper.h"
11 #include "core/paint/BoxPainter.h" 10 #include "core/paint/BoxPainter.h"
12 #include "core/paint/LayoutObjectDrawingRecorder.h" 11 #include "core/paint/LayoutObjectDrawingRecorder.h"
13 #include "core/paint/ObjectPainter.h" 12 #include "core/paint/ObjectPainter.h"
14 #include "core/paint/PaintInfo.h" 13 #include "core/paint/PaintInfo.h"
15 #include "core/paint/TableSectionPainter.h" 14 #include "core/paint/TableSectionPainter.h"
15 #include "core/style/CollapsedBorderValue.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 void TablePainter::paintObject(const PaintInfo& paintInfo, 19 void TablePainter::paintObject(const PaintInfo& paintInfo,
20 const LayoutPoint& paintOffset) { 20 const LayoutPoint& paintOffset) {
21 PaintPhase paintPhase = paintInfo.phase; 21 PaintPhase paintPhase = paintInfo.phase;
22 22
23 if (shouldPaintSelfBlockBackground(paintPhase)) { 23 if (shouldPaintSelfBlockBackground(paintPhase)) {
24 paintBoxDecorationBackground(paintInfo, paintOffset); 24 paintBoxDecorationBackground(paintInfo, paintOffset);
25 if (paintPhase == PaintPhaseSelfBlockBackgroundOnly) 25 if (paintPhase == PaintPhaseSelfBlockBackgroundOnly)
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 LayoutRect rect(paintOffset, m_layoutTable.size()); 95 LayoutRect rect(paintOffset, m_layoutTable.size());
96 m_layoutTable.subtractCaptionRect(rect); 96 m_layoutTable.subtractCaptionRect(rect);
97 97
98 LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutTable, 98 LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutTable,
99 paintInfo.phase, rect); 99 paintInfo.phase, rect);
100 BoxPainter(m_layoutTable).paintMaskImages(paintInfo, rect); 100 BoxPainter(m_layoutTable).paintMaskImages(paintInfo, rect);
101 } 101 }
102 102
103 } // namespace blink 103 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGPaintContext.h ('k') | third_party/WebKit/Source/core/paint/TableSectionPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698