mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-07 08:39:43 +00:00
These are currently initialized in a [[gnu::constructor]], which has a weird initialization order. These constructors are invoked before main() and, incidentally, before any user-defined default constructors of the static strings they are initializing. This will become an issue when these strings are ported to FlyString, which has a user-defined default constructor. In that scenario, when the FlyString constructor is executed after the [[gnu::constructor]], the strings will be "reset" to the empty string. Instead of relying on a non-standard compiler extension here, let's just initialize these strings explicitly during main-thread VM creation, as this now happens in WebContent's main(). |
||
---|---|---|
.. | ||
AttributeNames.cpp | ||
AttributeNames.h | ||
AttributeParser.cpp | ||
AttributeParser.h | ||
SVGAnimatedLength.cpp | ||
SVGAnimatedLength.h | ||
SVGAnimatedLength.idl | ||
SVGCircleElement.cpp | ||
SVGCircleElement.h | ||
SVGCircleElement.idl | ||
SVGClipPathElement.cpp | ||
SVGClipPathElement.h | ||
SVGClipPathElement.idl | ||
SVGContext.h | ||
SVGDefsElement.cpp | ||
SVGDefsElement.h | ||
SVGDefsElement.idl | ||
SVGElement.cpp | ||
SVGElement.h | ||
SVGElement.idl | ||
SVGEllipseElement.cpp | ||
SVGEllipseElement.h | ||
SVGEllipseElement.idl | ||
SVGForeignObjectElement.cpp | ||
SVGForeignObjectElement.h | ||
SVGForeignObjectElement.idl | ||
SVGGElement.cpp | ||
SVGGElement.h | ||
SVGGeometryElement.cpp | ||
SVGGeometryElement.h | ||
SVGGeometryElement.idl | ||
SVGGraphicsElement.cpp | ||
SVGGraphicsElement.h | ||
SVGGraphicsElement.idl | ||
SVGLength.cpp | ||
SVGLength.h | ||
SVGLength.idl | ||
SVGLineElement.cpp | ||
SVGLineElement.h | ||
SVGLineElement.idl | ||
SVGPathElement.cpp | ||
SVGPathElement.h | ||
SVGPathElement.idl | ||
SVGPolygonElement.cpp | ||
SVGPolygonElement.h | ||
SVGPolygonElement.idl | ||
SVGPolylineElement.cpp | ||
SVGPolylineElement.h | ||
SVGPolylineElement.idl | ||
SVGRectElement.cpp | ||
SVGRectElement.h | ||
SVGRectElement.idl | ||
SVGSVGElement.cpp | ||
SVGSVGElement.h | ||
SVGSVGElement.idl | ||
SVGTextContentElement.cpp | ||
SVGTextContentElement.h | ||
SVGTextContentElement.idl | ||
TagNames.cpp | ||
TagNames.h | ||
ViewBox.cpp | ||
ViewBox.h |