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

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

Issue 1983853003: Refactor background painting behind table cells (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 #ifndef TableRowPainter_h 5 #ifndef TableRowPainter_h
6 #define TableRowPainter_h 6 #define TableRowPainter_h
7 7
8 #include "core/layout/LayoutTableRow.h" 8 #include "core/layout/LayoutTableRow.h"
9 #include "core/style/ShadowData.h"
9 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 class TableRowPainter { 14 class TableRowPainter {
14 STACK_ALLOCATED(); 15 STACK_ALLOCATED();
15 public: 16 public:
16 TableRowPainter(const LayoutTableRow& layoutTableRow) : m_layoutTableRow(lay outTableRow) { } 17 TableRowPainter(const LayoutTableRow& layoutTableRow) : m_layoutTableRow(lay outTableRow) { }
17 18
18 void paint(const PaintInfo&, const LayoutPoint&); 19 void paint(const PaintInfo&, const LayoutPoint&);
19 void paintOutlineForRowIfNeeded(const PaintInfo&, const LayoutPoint&); 20 void paintOutline(const PaintInfo&, const LayoutPoint&);
21 void paintBackgroundBehindCell(const LayoutTableCell&, const PaintInfo&, con st LayoutPoint&);
Xianzhu 2016/05/16 21:47:53 It calls TableCellPainter::paintContainerBackgroun
20 22
21 private: 23 private:
22 const LayoutTableRow& m_layoutTableRow; 24 const LayoutTableRow& m_layoutTableRow;
23 }; 25 };
24 26
25 } // namespace blink 27 } // namespace blink
26 28
27 #endif // TableRowPainter_h 29 #endif // TableRowPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698