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

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

Issue 2791433003: Fix Border collapsing with colpsan / rowspan cells
Patch Set: bug 2902 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 TableCellPainter_h 5 #ifndef TableCellPainter_h
6 #define TableCellPainter_h 6 #define TableCellPainter_h
7 7
8 #include "core/style/CollapsedBorderValue.h" 8 #include "core/style/CollapsedBorderValue.h"
9 #include "platform/graphics/paint/DisplayItem.h" 9 #include "platform/graphics/paint/DisplayItem.h"
10 #include "platform/wtf/Allocator.h" 10 #include "platform/wtf/Allocator.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 struct PaintInfo; 14 struct PaintInfo;
15 class CollapsedBorderValue; 15 class CollapsedBorderValue;
16 class LayoutPoint; 16 class LayoutPoint;
17 class LayoutRect; 17 class LayoutRect;
18 class LayoutTableCell; 18 class LayoutTableCell;
19 class LayoutObject; 19 class LayoutObject;
20 20
21 class TableCellPainter { 21 class TableCellPainter {
22 STACK_ALLOCATED(); 22 STACK_ALLOCATED();
23 23
24 public: 24 public:
25 TableCellPainter(const LayoutTableCell& layout_table_cell) 25 TableCellPainter(const LayoutTableCell& layout_table_cell)
26 : layout_table_cell_(layout_table_cell) {} 26 : layout_table_cell_(layout_table_cell) {}
27 27
28 void Paint(const PaintInfo&, const LayoutPoint&); 28 void Paint(const PaintInfo&, const LayoutPoint&);
29 29
30 void PaintCollapsedBorders(const PaintInfo&,
31 const LayoutPoint&,
32 const CollapsedBorderValue&);
33 void PaintContainerBackgroundBehindCell( 30 void PaintContainerBackgroundBehindCell(
34 const PaintInfo&, 31 const PaintInfo&,
35 const LayoutPoint&, 32 const LayoutPoint&,
36 const LayoutObject& background_object); 33 const LayoutObject& background_object);
37 void PaintBoxDecorationBackground(const PaintInfo&, 34 void PaintBoxDecorationBackground(const PaintInfo&,
38 const LayoutPoint& paint_offset); 35 const LayoutPoint& paint_offset);
39 void PaintMask(const PaintInfo&, const LayoutPoint& paint_offset); 36 void PaintMask(const PaintInfo&, const LayoutPoint& paint_offset);
40 37
41 private: 38 private:
42 const DisplayItemClient& DisplayItemClientForBorders() const; 39 const DisplayItemClient& DisplayItemClientForBorders() const;
43 LayoutRect PaintRectNotIncludingVisualOverflow( 40 LayoutRect PaintRectNotIncludingVisualOverflow(
44 const LayoutPoint& paint_offset); 41 const LayoutPoint& paint_offset);
45 void PaintBackground(const PaintInfo&, 42 void PaintBackground(const PaintInfo&,
46 const LayoutRect&, 43 const LayoutRect&,
47 const LayoutObject& background_object); 44 const LayoutObject& background_object);
48 45
49 const LayoutTableCell& layout_table_cell_; 46 const LayoutTableCell& layout_table_cell_;
50 }; 47 };
51 48
52 } // namespace blink 49 } // namespace blink
53 50
54 #endif // TableCellPainter_h 51 #endif // TableCellPainter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/BUILD.gn ('k') | third_party/WebKit/Source/core/paint/TableCellPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698