mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:27:35 +00:00
AK+Everywhere: Rename FlyString to DeprecatedFlyString
DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so let's rename it to A) match the name of DeprecatedString, B) write a new FlyString class that is tied to String.
This commit is contained in:
parent
2eacc7aec1
commit
f3db548a3d
316 changed files with 1177 additions and 1177 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
namespace Web::SVG::AttributeNames {
|
||||
|
||||
#define __ENUMERATE_SVG_ATTRIBUTE(name) FlyString name;
|
||||
#define __ENUMERATE_SVG_ATTRIBUTE(name) DeprecatedFlyString name;
|
||||
ENUMERATE_SVG_ATTRIBUTES(__ENUMERATE_SVG_ATTRIBUTE)
|
||||
#undef __ENUMERATE_SVG_ATTRIBUTE
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/DeprecatedFlyString.h>
|
||||
|
||||
namespace Web::SVG::AttributeNames {
|
||||
|
||||
|
@ -87,7 +87,7 @@ namespace Web::SVG::AttributeNames {
|
|||
E(yChannelSelector) \
|
||||
E(zoomAndPan)
|
||||
|
||||
#define __ENUMERATE_SVG_ATTRIBUTE(name) extern FlyString name;
|
||||
#define __ENUMERATE_SVG_ATTRIBUTE(name) extern DeprecatedFlyString name;
|
||||
ENUMERATE_SVG_ATTRIBUTES(__ENUMERATE_SVG_ATTRIBUTE)
|
||||
#undef __ENUMERATE_SVG_ATTRIBUTE
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ SVGCircleElement::SVGCircleElement(DOM::Document& document, DOM::QualifiedName q
|
|||
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGCircleElement"));
|
||||
}
|
||||
|
||||
void SVGCircleElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
|
||||
void SVGCircleElement::parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value)
|
||||
{
|
||||
SVGGeometryElement::parse_attribute(name, value);
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class SVGCircleElement final : public SVGGeometryElement {
|
|||
public:
|
||||
virtual ~SVGCircleElement() override = default;
|
||||
|
||||
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
|
||||
virtual void parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value) override;
|
||||
|
||||
virtual Gfx::Path& get_path() override;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ SVGEllipseElement::SVGEllipseElement(DOM::Document& document, DOM::QualifiedName
|
|||
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGEllipseElement"));
|
||||
}
|
||||
|
||||
void SVGEllipseElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
|
||||
void SVGEllipseElement::parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value)
|
||||
{
|
||||
SVGGeometryElement::parse_attribute(name, value);
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class SVGEllipseElement final : public SVGGeometryElement {
|
|||
public:
|
||||
virtual ~SVGEllipseElement() override = default;
|
||||
|
||||
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
|
||||
virtual void parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value) override;
|
||||
|
||||
virtual Gfx::Path& get_path() override;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ SVGLineElement::SVGLineElement(DOM::Document& document, DOM::QualifiedName quali
|
|||
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGLineElement"));
|
||||
}
|
||||
|
||||
void SVGLineElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
|
||||
void SVGLineElement::parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value)
|
||||
{
|
||||
SVGGeometryElement::parse_attribute(name, value);
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class SVGLineElement final : public SVGGeometryElement {
|
|||
public:
|
||||
virtual ~SVGLineElement() override = default;
|
||||
|
||||
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
|
||||
virtual void parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value) override;
|
||||
|
||||
virtual Gfx::Path& get_path() override;
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ SVGPathElement::SVGPathElement(DOM::Document& document, DOM::QualifiedName quali
|
|||
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGPathElement"));
|
||||
}
|
||||
|
||||
void SVGPathElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
|
||||
void SVGPathElement::parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value)
|
||||
{
|
||||
SVGGeometryElement::parse_attribute(name, value);
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ class SVGPathElement final : public SVGGeometryElement {
|
|||
public:
|
||||
virtual ~SVGPathElement() override = default;
|
||||
|
||||
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
|
||||
virtual void parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value) override;
|
||||
|
||||
virtual Gfx::Path& get_path() override;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ SVGPolygonElement::SVGPolygonElement(DOM::Document& document, DOM::QualifiedName
|
|||
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGPolygonElement"));
|
||||
}
|
||||
|
||||
void SVGPolygonElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
|
||||
void SVGPolygonElement::parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value)
|
||||
{
|
||||
SVGGeometryElement::parse_attribute(name, value);
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ class SVGPolygonElement final : public SVGGeometryElement {
|
|||
public:
|
||||
virtual ~SVGPolygonElement() override = default;
|
||||
|
||||
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
|
||||
virtual void parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value) override;
|
||||
|
||||
virtual Gfx::Path& get_path() override;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ SVGPolylineElement::SVGPolylineElement(DOM::Document& document, DOM::QualifiedNa
|
|||
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGPolylineElement"));
|
||||
}
|
||||
|
||||
void SVGPolylineElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
|
||||
void SVGPolylineElement::parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value)
|
||||
{
|
||||
SVGGeometryElement::parse_attribute(name, value);
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ class SVGPolylineElement final : public SVGGeometryElement {
|
|||
public:
|
||||
virtual ~SVGPolylineElement() override = default;
|
||||
|
||||
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
|
||||
virtual void parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value) override;
|
||||
|
||||
virtual Gfx::Path& get_path() override;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ SVGRectElement::SVGRectElement(DOM::Document& document, DOM::QualifiedName quali
|
|||
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGRectElement"));
|
||||
}
|
||||
|
||||
void SVGRectElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
|
||||
void SVGRectElement::parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value)
|
||||
{
|
||||
SVGGeometryElement::parse_attribute(name, value);
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class SVGRectElement final : public SVGGeometryElement {
|
|||
public:
|
||||
virtual ~SVGRectElement() override = default;
|
||||
|
||||
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
|
||||
virtual void parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value) override;
|
||||
|
||||
virtual Gfx::Path& get_path() override;
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ void SVGSVGElement::apply_presentational_hints(CSS::StyleProperties& style) cons
|
|||
}
|
||||
}
|
||||
|
||||
void SVGSVGElement::parse_attribute(FlyString const& name, DeprecatedString const& value)
|
||||
void SVGSVGElement::parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value)
|
||||
{
|
||||
SVGGraphicsElement::parse_attribute(name, value);
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ private:
|
|||
|
||||
virtual bool is_svg_svg_element() const override { return true; }
|
||||
|
||||
virtual void parse_attribute(FlyString const& name, DeprecatedString const& value) override;
|
||||
virtual void parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value) override;
|
||||
|
||||
Optional<ViewBox> m_view_box;
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
namespace Web::SVG::TagNames {
|
||||
|
||||
#define __ENUMERATE_SVG_TAG(name) FlyString name;
|
||||
#define __ENUMERATE_SVG_TAG(name) DeprecatedFlyString name;
|
||||
ENUMERATE_SVG_TAGS
|
||||
#undef __ENUMERATE_SVG_TAG
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/DeprecatedFlyString.h>
|
||||
|
||||
namespace Web::SVG::TagNames {
|
||||
|
||||
|
@ -31,7 +31,7 @@ namespace Web::SVG::TagNames {
|
|||
__ENUMERATE_SVG_TAG(script) \
|
||||
__ENUMERATE_SVG_TAG(title)
|
||||
|
||||
#define __ENUMERATE_SVG_TAG(name) extern FlyString name;
|
||||
#define __ENUMERATE_SVG_TAG(name) extern DeprecatedFlyString name;
|
||||
ENUMERATE_SVG_TAGS
|
||||
#undef __ENUMERATE_SVG_TAG
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue