chromium/third_party/blink/renderer/core/paint/inline_box_fragment_painter.h

// Copyright 2018 The Chromium Authors
// 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_INLINE_BOX_FRAGMENT_PAINTER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_INLINE_BOX_FRAGMENT_PAINTER_H_

#include "base/check_op.h"
#include "base/dcheck_is_on.h"
#include "third_party/blink/renderer/core/layout/inline/inline_cursor.h"
#include "third_party/blink/renderer/core/layout/inline/physical_line_box_fragment.h"
#include "third_party/blink/renderer/core/layout/layout_object_inlines.h"
#include "third_party/blink/renderer/core/paint/box_fragment_painter.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"

namespace blink {

class InlinePaintContext;
struct PaintInfo;
struct PhysicalRect;

// Common base class for InlineBoxFragmentPainter and
// LineBoxFragmentPainter.
class InlineBoxFragmentPainterBase {};

// Painter for LayoutNG inline box fragments. Delegates to BoxFragmentPainter
// for all box painting logic that isn't specific to inline boxes.
class InlineBoxFragmentPainter : public InlineBoxFragmentPainterBase {};

// Painter for LayoutNG line box fragments. Line boxes don't paint anything,
// except when ::first-line style has background properties specified.
// https://drafts.csswg.org/css-pseudo-4/#first-line-styling
class LineBoxFragmentPainter : public InlineBoxFragmentPainterBase {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_INLINE_BOX_FRAGMENT_PAINTER_H_