blob: 22339acfa5ee2f2b12650b869d9cd46e0ff32291 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TableRowPainter_h
#define TableRowPainter_h
#include "core/style/ShadowData.h"
#include "wtf/Allocator.h"
namespace blink {
class LayoutPoint;
class LayoutTableCell;
class LayoutTableRow;
struct PaintInfo;
class TableRowPainter {
STACK_ALLOCATED();
public:
TableRowPainter(const LayoutTableRow& layoutTableRow)
: m_layoutTableRow(layoutTableRow) {}
void paint(const PaintInfo&, const LayoutPoint&);
void paintOutline(const PaintInfo&, const LayoutPoint&);
void paintBoxShadow(const PaintInfo&, const LayoutPoint&, ShadowStyle);
void paintBackgroundBehindCell(const LayoutTableCell&,
const PaintInfo&,
const LayoutPoint&);
private:
const LayoutTableRow& m_layoutTableRow;
};
} // namespace blink
#endif // TableRowPainter_h