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

Side by Side Diff: third_party/WebKit/Source/core/paint/TableCellPainter.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 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 "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 14 matching lines...) Expand all
25 TableCellPainter(const LayoutTableCell& layoutTableCell) 25 TableCellPainter(const LayoutTableCell& layoutTableCell)
26 : m_layoutTableCell(layoutTableCell) {} 26 : m_layoutTableCell(layoutTableCell) {}
27 27
28 void paint(const PaintInfo&, const LayoutPoint&); 28 void paint(const PaintInfo&, const LayoutPoint&);
29 29
30 void paintCollapsedBorders(const PaintInfo&, 30 void paintCollapsedBorders(const PaintInfo&,
31 const LayoutPoint&, 31 const LayoutPoint&,
32 const CollapsedBorderValue&); 32 const CollapsedBorderValue&);
33 void paintContainerBackgroundBehindCell(const PaintInfo&, 33 void paintContainerBackgroundBehindCell(const PaintInfo&,
34 const LayoutPoint&, 34 const LayoutPoint&,
35 const LayoutObject& backgroundObject, 35 const LayoutObject& backgroundObject);
36 DisplayItem::Type);
37 void paintBoxDecorationBackground(const PaintInfo&, 36 void paintBoxDecorationBackground(const PaintInfo&,
38 const LayoutPoint& paintOffset); 37 const LayoutPoint& paintOffset);
39 void paintMask(const PaintInfo&, const LayoutPoint& paintOffset); 38 void paintMask(const PaintInfo&, const LayoutPoint& paintOffset);
40 39
41 private: 40 private:
42 const DisplayItemClient& displayItemClientForBorders() const; 41 const DisplayItemClient& displayItemClientForBorders() const;
43 LayoutRect paintRectNotIncludingVisualOverflow( 42 LayoutRect paintRectNotIncludingVisualOverflow(
44 const LayoutPoint& paintOffset); 43 const LayoutPoint& paintOffset);
45 void paintBackground(const PaintInfo&, 44 void paintBackground(const PaintInfo&,
46 const LayoutRect&, 45 const LayoutRect&,
47 const LayoutObject& backgroundObject); 46 const LayoutObject& backgroundObject);
48 47
49 const LayoutTableCell& m_layoutTableCell; 48 const LayoutTableCell& m_layoutTableCell;
50 }; 49 };
51 50
52 } // namespace blink 51 } // namespace blink
53 52
54 #endif // TableCellPainter_h 53 #endif // TableCellPainter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInvalidator.cpp ('k') | third_party/WebKit/Source/core/paint/TableCellPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698