2024-08-20 15:12:55 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2024, Tim Ledbetter <tim.ledbetter@ladybird.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
#include <LibGC/Ptr.h>
|
2024-08-20 15:12:55 +01:00
|
|
|
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
|
|
|
#include <LibWeb/SVG/SVGImageElement.h>
|
|
|
|
|
|
|
|
namespace Web::Layout {
|
|
|
|
|
|
|
|
class SVGImageBox : public SVGGraphicsBox {
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_CELL(SVGImageBox, SVGGraphicsBox);
|
2024-08-20 15:12:55 +01:00
|
|
|
|
|
|
|
public:
|
2024-12-20 16:35:12 +01:00
|
|
|
SVGImageBox(DOM::Document&, SVG::SVGGraphicsElement&, GC::Ref<CSS::ComputedProperties>);
|
2024-08-20 15:12:55 +01:00
|
|
|
virtual ~SVGImageBox() override = default;
|
|
|
|
|
|
|
|
SVG::SVGImageElement& dom_node() { return static_cast<SVG::SVGImageElement&>(SVGGraphicsBox::dom_node()); }
|
|
|
|
SVG::SVGImageElement const& dom_node() const { return static_cast<SVG::SVGImageElement const&>(SVGGraphicsBox::dom_node()); }
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
virtual GC::Ptr<Painting::Paintable> create_paintable() const override;
|
2024-08-20 15:12:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|