1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:17:34 +00:00

LibWeb: Add namespace to Element

This commit is contained in:
Luke 2020-10-10 02:48:05 +01:00 committed by Andreas Kling
parent efaf03e986
commit e8a9e8aed5
167 changed files with 505 additions and 340 deletions

View file

@ -28,8 +28,8 @@
namespace Web::SVG {
SVGElement::SVGElement(DOM::Document& document, const FlyString& tag_name)
: Element(document, tag_name)
SVGElement::SVGElement(DOM::Document& document, const QualifiedName& qualified_name)
: Element(document, qualified_name)
{
}

View file

@ -37,7 +37,7 @@ public:
virtual bool is_graphics_element() const { return false; }
protected:
SVGElement(DOM::Document&, const FlyString& tag_name);
SVGElement(DOM::Document&, const QualifiedName& qualified_name);
private:
virtual bool is_svg_element() const final { return true; }

View file

@ -28,8 +28,8 @@
namespace Web::SVG {
SVGGeometryElement::SVGGeometryElement(DOM::Document& document, const FlyString& tag_name)
: SVGGraphicsElement(document, tag_name)
SVGGeometryElement::SVGGeometryElement(DOM::Document& document, const QualifiedName& qualified_name)
: SVGGraphicsElement(document, qualified_name)
{
}

View file

@ -35,7 +35,7 @@ public:
using WrapperType = Bindings::SVGGeometryElementWrapper;
protected:
SVGGeometryElement(DOM::Document& document, const FlyString& tag_name);
SVGGeometryElement(DOM::Document& document, const QualifiedName& qualified_name);
};
}

View file

@ -28,8 +28,8 @@
namespace Web::SVG {
SVGGraphicsElement::SVGGraphicsElement(DOM::Document& document, const FlyString& tag_name)
: SVGElement(document, tag_name)
SVGGraphicsElement::SVGGraphicsElement(DOM::Document& document, const QualifiedName& qualified_name)
: SVGElement(document, qualified_name)
{
}

View file

@ -37,7 +37,7 @@ class SVGGraphicsElement : public SVGElement {
public:
using WrapperType = Bindings::SVGGraphicsElementWrapper;
SVGGraphicsElement(DOM::Document&, const FlyString& tag_name);
SVGGraphicsElement(DOM::Document&, const QualifiedName& qualified_name);
virtual void parse_attribute(const FlyString& name, const String& value) override;

View file

@ -425,8 +425,8 @@ bool PathDataParser::match_coordinate() const
return !done() && (isdigit(ch()) || ch() == '-' || ch() == '+' || ch() == '.');
}
SVGPathElement::SVGPathElement(DOM::Document& document, const FlyString& tag_name)
: SVGGeometryElement(document, tag_name)
SVGPathElement::SVGPathElement(DOM::Document& document, const QualifiedName& qualified_name)
: SVGGeometryElement(document, qualified_name)
{
}

View file

@ -106,7 +106,7 @@ class SVGPathElement final : public SVGGeometryElement {
public:
using WrapperType = Bindings::SVGPathElementWrapper;
SVGPathElement(DOM::Document&, const FlyString& tag_name);
SVGPathElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~SVGPathElement() override = default;
virtual RefPtr<LayoutNode> create_layout_node(const CSS::StyleProperties* parent_style) override;

View file

@ -35,8 +35,8 @@
namespace Web::SVG {
SVGSVGElement::SVGSVGElement(DOM::Document& document, const FlyString& tag_name)
: SVGGraphicsElement(document, tag_name)
SVGSVGElement::SVGSVGElement(DOM::Document& document, const QualifiedName& qualified_name)
: SVGGraphicsElement(document, qualified_name)
{
}

View file

@ -35,7 +35,7 @@ class SVGSVGElement final : public SVGGraphicsElement {
public:
using WrapperType = Bindings::SVGSVGElementWrapper;
SVGSVGElement(DOM::Document&, const FlyString& tag_name);
SVGSVGElement(DOM::Document&, const QualifiedName& qualified_name);
virtual RefPtr<LayoutNode> create_layout_node(const CSS::StyleProperties* parent_style) override;