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

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

Issue 2786463004: Paint backgrounds of a table section/row in one display item (Closed)
Patch Set: - Created 3 years, 8 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 TableSectionPainter_h 5 #ifndef TableSectionPainter_h
6 #define TableSectionPainter_h 6 #define TableSectionPainter_h
7 7
8 #include "core/paint/PaintPhase.h" 8 #include "core/paint/PaintPhase.h"
9 #include "core/style/ShadowData.h" 9 #include "core/style/ShadowData.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class CellSpan;
14 class CollapsedBorderValue; 15 class CollapsedBorderValue;
15 class LayoutPoint; 16 class LayoutPoint;
16 class LayoutTableCell; 17 class LayoutTableCell;
17 class LayoutTableSection; 18 class LayoutTableSection;
18 struct PaintInfo; 19 struct PaintInfo;
19 20
20 class TableSectionPainter { 21 class TableSectionPainter {
21 STACK_ALLOCATED(); 22 STACK_ALLOCATED();
22 23
23 public: 24 public:
24 TableSectionPainter(const LayoutTableSection& layoutTableSection) 25 TableSectionPainter(const LayoutTableSection& layoutTableSection)
25 : m_layoutTableSection(layoutTableSection) {} 26 : m_layoutTableSection(layoutTableSection) {}
26 27
27 void paint(const PaintInfo&, const LayoutPoint&); 28 void paint(const PaintInfo&, const LayoutPoint&);
28 void paintCollapsedBorders(const PaintInfo&, 29 void paintCollapsedBorders(const PaintInfo&,
29 const LayoutPoint&, 30 const LayoutPoint&,
30 const CollapsedBorderValue&); 31 const CollapsedBorderValue&);
31 32
32 private: 33 private:
33 void paintObject(const PaintInfo&, const LayoutPoint&); 34 void paintObject(const PaintInfo&, const LayoutPoint&);
34 35
36 void paintBoxDecorationBackground(const PaintInfo&,
37 const LayoutPoint&,
38 const CellSpan& dirtiedRows,
39 const CellSpan& dirtiedColumns);
35 void paintBackgroundsBehindCell(const LayoutTableCell&, 40 void paintBackgroundsBehindCell(const LayoutTableCell&,
36 const PaintInfo&, 41 const PaintInfo&,
37 const LayoutPoint&); 42 const LayoutPoint&);
38 void paintCell(const LayoutTableCell&, const PaintInfo&, const LayoutPoint&); 43 void paintCell(const LayoutTableCell&, const PaintInfo&, const LayoutPoint&);
39 void paintBoxShadow(const PaintInfo&, const LayoutPoint&, ShadowStyle);
40 44
41 enum ItemToPaint { PaintCollapsedBorders, PaintSection }; 45 enum ItemToPaint { PaintCollapsedBorders, PaintSection };
42 void paintRepeatingHeaderGroup(const PaintInfo&, 46 void paintRepeatingHeaderGroup(const PaintInfo&,
43 const LayoutPoint& paintOffset, 47 const LayoutPoint& paintOffset,
44 const CollapsedBorderValue& currentBorderValue, 48 const CollapsedBorderValue& currentBorderValue,
45 ItemToPaint); 49 ItemToPaint);
46 void paintSection(const PaintInfo&, const LayoutPoint&); 50 void paintSection(const PaintInfo&, const LayoutPoint&);
47 void paintCollapsedSectionBorders(const PaintInfo&, 51 void paintCollapsedSectionBorders(const PaintInfo&,
48 const LayoutPoint&, 52 const LayoutPoint&,
49 const CollapsedBorderValue&); 53 const CollapsedBorderValue&);
50 54
51 const LayoutTableSection& m_layoutTableSection; 55 const LayoutTableSection& m_layoutTableSection;
52 }; 56 };
53 57
54 } // namespace blink 58 } // namespace blink
55 59
56 #endif // TableSectionPainter_h 60 #endif // TableSectionPainter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/TableRowPainter.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