blob: 0540a4636310b7f1fa85d575fe10ad1e9302ef16 [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 THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_MULTI_COLUMN_SET_PAINTER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_MULTI_COLUMN_SET_PAINTER_H_
#include "third_party/blink/renderer/platform/wtf/allocator.h"
namespace blink {
struct PaintInfo;
class LayoutPoint;
class LayoutMultiColumnSet;
class MultiColumnSetPainter {
STACK_ALLOCATED();
public:
MultiColumnSetPainter(const LayoutMultiColumnSet& layout_multi_column_set)
: layout_multi_column_set_(layout_multi_column_set) {}
void PaintObject(const PaintInfo&, const LayoutPoint& paint_offset);
private:
void PaintColumnRules(const PaintInfo&, const LayoutPoint& paint_offset);
const LayoutMultiColumnSet& layout_multi_column_set_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_MULTI_COLUMN_SET_PAINTER_H_