
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
31 lines
902 B
C++
31 lines
902 B
C++
/*
|
|
* Copyright (c) 2023, MacDue <macdue@dueutil.tech>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
|
#include <LibWeb/SVG/SVGTextPathElement.h>
|
|
|
|
namespace Web::Layout {
|
|
|
|
class SVGTextPathBox final : public SVGGraphicsBox {
|
|
GC_CELL(SVGTextPathBox, SVGGraphicsBox);
|
|
GC_DECLARE_ALLOCATOR(SVGTextPathBox);
|
|
|
|
public:
|
|
SVGTextPathBox(DOM::Document&, SVG::SVGTextPathElement&, CSS::StyleProperties);
|
|
virtual ~SVGTextPathBox() override = default;
|
|
|
|
SVG::SVGTextPathElement& dom_node() { return static_cast<SVG::SVGTextPathElement&>(SVGGraphicsBox::dom_node()); }
|
|
SVG::SVGTextPathElement const& dom_node() const { return static_cast<SVG::SVGTextPathElement const&>(SVGGraphicsBox::dom_node()); }
|
|
|
|
virtual GC::Ptr<Painting::Paintable> create_paintable() const override;
|
|
|
|
private:
|
|
CSSPixelPoint viewbox_origin() const;
|
|
};
|
|
|
|
}
|