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

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

Issue 724483002: Move painting code from RenderTableCell to TableCellPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef TableCellPainter_h
6 #define TableCellPainter_h
7
8 #include "core/rendering/style/CollapsedBorderValue.h"
9
10 namespace blink {
11
12 struct PaintInfo;
13 class LayoutPoint;
14 class RenderObject;
15 class RenderStyle;
16 class RenderTableCell;
17
18 class TableCellPainter {
19 public:
20 TableCellPainter(RenderTableCell& renderTableCell) : m_renderTableCell(rende rTableCell) { }
21
22 void paint(PaintInfo&, const LayoutPoint&);
23
24 void paintCollapsedBorders(PaintInfo&, const LayoutPoint&);
25 void paintBackgroundsBehindCell(PaintInfo&, const LayoutPoint&, RenderObject * backgroundObject);
26 void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint& paintOffset );
27 void paintMask(PaintInfo&, const LayoutPoint& paintOffset);
28
29 private:
30 CollapsedBorderValue cachedCollapsedLeftBorder(const RenderStyle*) const;
31 CollapsedBorderValue cachedCollapsedRightBorder(const RenderStyle*) const;
32 CollapsedBorderValue cachedCollapsedTopBorder(const RenderStyle*) const;
33 CollapsedBorderValue cachedCollapsedBottomBorder(const RenderStyle*) const;
34
35 RenderTableCell& m_renderTableCell;
36 };
37
38 } // namespace blink
39
40 #endif // TableCellPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698