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

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

Issue 1963313002: Implement box-shadow for table section and row (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/style/ShadowData.h"
8 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class LayoutPoint; 13 class LayoutPoint;
13 class LayoutTableCell; 14 class LayoutTableCell;
14 class LayoutTableRow; 15 class LayoutTableRow;
15 struct PaintInfo; 16 struct PaintInfo;
16 17
17 class TableRowPainter { 18 class TableRowPainter {
18 STACK_ALLOCATED(); 19 STACK_ALLOCATED();
19 public: 20 public:
20 TableRowPainter(const LayoutTableRow& layoutTableRow) : m_layoutTableRow(lay outTableRow) { } 21 TableRowPainter(const LayoutTableRow& layoutTableRow) : m_layoutTableRow(lay outTableRow) { }
21 22
22 void paint(const PaintInfo&, const LayoutPoint&); 23 void paint(const PaintInfo&, const LayoutPoint&);
23 void paintOutline(const PaintInfo&, const LayoutPoint&); 24 void paintOutline(const PaintInfo&, const LayoutPoint&);
25 void paintBoxShadow(const PaintInfo&, const LayoutPoint&, ShadowStyle);
24 void paintBackgroundBehindCell(const LayoutTableCell&, const PaintInfo&, con st LayoutPoint&); 26 void paintBackgroundBehindCell(const LayoutTableCell&, const PaintInfo&, con st LayoutPoint&);
25 27
26 private: 28 private:
27 const LayoutTableRow& m_layoutTableRow; 29 const LayoutTableRow& m_layoutTableRow;
28 }; 30 };
29 31
30 } // namespace blink 32 } // namespace blink
31 33
32 #endif // TableRowPainter_h 34 #endif // TableRowPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698