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

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

Issue 2489893002: [SPv2] Track paint offset change (Closed)
Patch Set: - Created 4 years, 1 month 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/TableRowPainter.h" 5 #include "core/paint/TableRowPainter.h"
6 6
7 #include "core/layout/LayoutTableCell.h" 7 #include "core/layout/LayoutTableCell.h"
8 #include "core/layout/LayoutTableRow.h" 8 #include "core/layout/LayoutTableRow.h"
9 #include "core/paint/BoxPainter.h" 9 #include "core/paint/BoxPainter.h"
10 #include "core/paint/LayoutObjectDrawingRecorder.h" 10 #include "core/paint/LayoutObjectDrawingRecorder.h"
11 #include "core/paint/ObjectPainter.h" 11 #include "core/paint/ObjectPainter.h"
12 #include "core/paint/PaintInfo.h" 12 #include "core/paint/PaintInfo.h"
13 #include "core/paint/TableCellPainter.h" 13 #include "core/paint/TableCellPainter.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 void TableRowPainter::paint(const PaintInfo& paintInfo, 17 void TableRowPainter::paint(const PaintInfo& paintInfo,
18 const LayoutPoint& paintOffset) { 18 const LayoutPoint& paintOffset) {
19 ObjectPainter(m_layoutTableRow).checkPaintOffset(paintInfo, paintOffset);
19 DCHECK(m_layoutTableRow.hasSelfPaintingLayer()); 20 DCHECK(m_layoutTableRow.hasSelfPaintingLayer());
20 21
21 // TODO(crbug.com/577282): This painting order is inconsistent with other 22 // TODO(crbug.com/577282): This painting order is inconsistent with other
22 // outlines. 23 // outlines.
23 if (shouldPaintSelfOutline(paintInfo.phase)) 24 if (shouldPaintSelfOutline(paintInfo.phase))
24 paintOutline(paintInfo, paintOffset); 25 paintOutline(paintInfo, paintOffset);
25 if (paintInfo.phase == PaintPhaseSelfOutlineOnly) 26 if (paintInfo.phase == PaintPhaseSelfOutlineOnly)
26 return; 27 return;
27 28
28 PaintInfo paintInfoForCells = paintInfo.forDescendants(); 29 PaintInfo paintInfoForCells = paintInfo.forDescendants();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 !m_layoutTableRow.hasSelfPaintingLayer()); 90 !m_layoutTableRow.hasSelfPaintingLayer());
90 LayoutPoint cellPoint = 91 LayoutPoint cellPoint =
91 m_layoutTableRow.section()->flipForWritingModeForChild(&cell, 92 m_layoutTableRow.section()->flipForWritingModeForChild(&cell,
92 paintOffset); 93 paintOffset);
93 TableCellPainter(cell).paintContainerBackgroundBehindCell( 94 TableCellPainter(cell).paintContainerBackgroundBehindCell(
94 paintInfo, cellPoint, m_layoutTableRow, 95 paintInfo, cellPoint, m_layoutTableRow,
95 DisplayItem::kTableCellBackgroundFromRow); 96 DisplayItem::kTableCellBackgroundFromRow);
96 } 97 }
97 98
98 } // namespace blink 99 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGRootPainter.cpp ('k') | third_party/WebKit/Source/core/paint/TableSectionPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698