blob: ff45f6868878253e0d106c3dc9d4fbe6d9fbcd49 [file] [log] [blame]
// Copyright 2015 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_EMBEDDED_OBJECT_PAINTER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_EMBEDDED_OBJECT_PAINTER_H_
#include "third_party/blink/renderer/platform/wtf/allocator.h"
namespace blink {
struct PaintInfo;
class LayoutEmbeddedObject;
class LayoutPoint;
class EmbeddedObjectPainter {
STACK_ALLOCATED();
public:
EmbeddedObjectPainter(const LayoutEmbeddedObject& layout_embedded_object)
: layout_embedded_object_(layout_embedded_object) {}
void PaintReplaced(const PaintInfo&, const LayoutPoint& paint_offset);
private:
const LayoutEmbeddedObject& layout_embedded_object_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_EMBEDDED_OBJECT_PAINTER_H_