blob: fce1a8f65a3df6989a09e0cfb63d5a03066b8bbc [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 PartPainter_h
#define PartPainter_h
#include "wtf/Allocator.h"
namespace blink {
struct PaintInfo;
class LayoutPoint;
class LayoutPart;
class PartPainter {
STACK_ALLOCATED();
public:
PartPainter(const LayoutPart& layoutPart) : m_layoutPart(layoutPart) {}
void paint(const PaintInfo&, const LayoutPoint&);
void paintContents(const PaintInfo&, const LayoutPoint&);
private:
bool isSelected() const;
const LayoutPart& m_layoutPart;
};
} // namespace blink
#endif // PartPainter_h