mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:27:44 +00:00

SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
29 lines
846 B
C++
29 lines
846 B
C++
/*
|
|
* Copyright (c) 2020, Matthew Olsson <matthewcolsson@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
|
#include <LibWeb/SVG/SVGSVGElement.h>
|
|
|
|
namespace Web::Layout {
|
|
|
|
class SVGSVGBox final : public SVGGraphicsBox {
|
|
public:
|
|
SVGSVGBox(DOM::Document&, SVG::SVGSVGElement&, NonnullRefPtr<CSS::StyleProperties>);
|
|
virtual ~SVGSVGBox() override = default;
|
|
|
|
SVG::SVGSVGElement& dom_node() { return downcast<SVG::SVGSVGElement>(SVGGraphicsBox::dom_node()); }
|
|
|
|
virtual void prepare_for_replaced_layout() override;
|
|
|
|
virtual void before_children_paint(PaintContext& context, PaintPhase phase) override;
|
|
virtual void after_children_paint(PaintContext& context, PaintPhase phase) override;
|
|
|
|
virtual bool can_have_children() const override { return true; }
|
|
};
|
|
|
|
}
|