/* * Copyright (c) 2024, Aliaksandr Kalenik * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Web::Painting { GC_DEFINE_ALLOCATOR(SVGForeignObjectPaintable); GC::Ref SVGForeignObjectPaintable::create(Layout::SVGForeignObjectBox const& layout_box) { return layout_box.heap().allocate(layout_box); } SVGForeignObjectPaintable::SVGForeignObjectPaintable(Layout::SVGForeignObjectBox const& layout_box) : PaintableWithLines(layout_box) { } Layout::SVGForeignObjectBox const& SVGForeignObjectPaintable::layout_box() const { return static_cast(layout_node()); } TraversalDecision SVGForeignObjectPaintable::hit_test(CSSPixelPoint position, HitTestType type, Function const& callback) const { return PaintableWithLines::hit_test(position, type, callback); } void SVGForeignObjectPaintable::paint(PaintContext& context, PaintPhase phase) const { PaintableWithLines::paint(context, phase); } }