blob: 7c3cdb2b0feda58561dbd7da2332ea0c5dc413a2 [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 LineBoxListPainter_h
#define LineBoxListPainter_h
#include "core/style/ComputedStyleConstants.h"
#include "wtf/Allocator.h"
namespace blink {
class LayoutPoint;
struct PaintInfo;
class LayoutBoxModelObject;
class LineBoxList;
class LineBoxListPainter {
STACK_ALLOCATED();
public:
LineBoxListPainter(const LineBoxList& lineBoxList)
: m_lineBoxList(lineBoxList) {}
void paint(const LayoutBoxModelObject&,
const PaintInfo&,
const LayoutPoint&) const;
void invalidateLineBoxPaintOffsets(const PaintInfo&) const;
private:
const LineBoxList& m_lineBoxList;
};
} // namespace blink
#endif // LineBoxListPainter_h