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

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

Issue 1646743002: Let table rows and sections paint their backgrounds in proper paint phases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FloatPhase
Patch Set: Rebase Created 4 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 #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 "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class CollapsedBorderValue; 13 class CollapsedBorderValue;
13 class LayoutPoint; 14 class LayoutPoint;
14 class LayoutTableCell; 15 class LayoutTableCell;
15 class LayoutTableSection; 16 class LayoutTableSection;
16 struct PaintInfo; 17 struct PaintInfo;
17 18
18 class TableSectionPainter { 19 class TableSectionPainter {
19 STACK_ALLOCATED(); 20 STACK_ALLOCATED();
20 public: 21 public:
21 TableSectionPainter(const LayoutTableSection& layoutTableSection) : m_layout TableSection(layoutTableSection) { } 22 TableSectionPainter(const LayoutTableSection& layoutTableSection) : m_layout TableSection(layoutTableSection) { }
22 23
23 void paint(const PaintInfo&, const LayoutPoint&); 24 void paint(const PaintInfo&, const LayoutPoint&);
24 void paintCollapsedBorders(const PaintInfo&, const LayoutPoint&, const Colla psedBorderValue&); 25 void paintCollapsedBorders(const PaintInfo&, const LayoutPoint&, const Colla psedBorderValue&);
25 26
26 private: 27 private:
27 void paintObject(const PaintInfo&, const LayoutPoint&); 28 void paintObject(const PaintInfo&, const LayoutPoint&);
28 void paintCell(const LayoutTableCell&, const PaintInfo&, const LayoutPoint&) ; 29 void paintCell(const LayoutTableCell&, PaintPhase originalPaintPhase, const PaintInfo&, const LayoutPoint&);
29 30
30 const LayoutTableSection& m_layoutTableSection; 31 const LayoutTableSection& m_layoutTableSection;
31 }; 32 };
32 33
33 } // namespace blink 34 } // namespace blink
34 35
35 #endif // TableSectionPainter_h 36 #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