1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +09:00
ladybird/Userland/Libraries/LibWeb/SVG
MacDue 59cd086199 LibWeb: Stub (and implement) SVGSVGElement methods and attributes
This implements trivial functions and stubs out the rest.

Implemented:

```
[SameObject] readonly attribute SVGAnimatedLength x;
[SameObject] readonly attribute SVGAnimatedLength y;
[SameObject] readonly attribute SVGAnimatedLength width;
[SameObject] readonly attribute SVGAnimatedLength height;

undefined deselectAll();

SVGLength createSVGLength();
DOMPoint createSVGPoint();
DOMMatrix createSVGMatrix();
DOMRect createSVGRect();
SVGTransform createSVGTransform();

Element getElementById(DOMString elementId);

unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
undefined unsuspendRedraw(unsigned long suspendHandleID);
undefined unsuspendRedrawAll();
undefined forceRedraw();
```

Stubbed:

```
attribute float currentScale;
[SameObject] readonly attribute DOMPointReadOnly currentTranslate;

NodeList getIntersectionList(
  DOMRectReadOnly rect, SVGElement? referenceElement);
NodeList getEnclosureList(
  DOMRectReadOnly rect, SVGElement? referenceElement);
boolean checkIntersection(SVGElement element, DOMRectReadOnly rect);
boolean checkEnclosure(SVGElement element, DOMRectReadOnly rect);
```
2024-04-01 21:10:35 +02:00
..
AttributeNames.cpp LibWeb: Add xlink:href to SVG attribute names 2023-12-30 18:50:29 +01:00
AttributeNames.h LibWeb: Add xlink:href to SVG attribute names 2023-12-30 18:50:29 +01:00
AttributeParser.cpp LibWeb: Use ErrorOr to propagate SVG attribute parsing errors 2024-03-20 09:09:35 +01:00
AttributeParser.h LibWeb: Lay out SVG <clipPath> uses 2024-03-29 21:59:56 +01:00
Default.css LibWeb: Include standard SVG user agent style sheet 2023-09-23 16:27:14 +02:00
SVGAnimatedLength.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGAnimatedLength.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
SVGAnimatedLength.idl
SVGAnimatedNumber.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGAnimatedNumber.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
SVGAnimatedNumber.idl LibWeb: Format all .idl files to use four space indentation 2024-01-18 14:00:06 +01:00
SVGAnimatedRect.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGAnimatedRect.h LibWeb: Add SVGSVGElement.viewBox attribute 2024-01-25 08:23:41 +01:00
SVGAnimatedRect.idl LibWeb: Add SVGSVGElement.viewBox attribute 2024-01-25 08:23:41 +01:00
SVGAnimatedString.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGAnimatedString.h LibWeb: Implement SVGAnimatedString 2023-12-30 18:50:29 +01:00
SVGAnimatedString.idl LibWeb: Format all .idl files to use four space indentation 2024-01-18 14:00:06 +01:00
SVGAnimatedTransformList.cpp LibWeb: Stub out SVGAnimatedTransformList 2024-04-01 21:10:35 +02:00
SVGAnimatedTransformList.h LibWeb: Stub out SVGAnimatedTransformList 2024-04-01 21:10:35 +02:00
SVGAnimatedTransformList.idl LibWeb: Stub out SVGAnimatedTransformList 2024-04-01 21:10:35 +02:00
SVGCircleElement.cpp LibWeb: Add (and use) CSS property to SVGAnimatedLength helper 2024-04-01 21:10:35 +02:00
SVGCircleElement.h LibWeb: Update SVG <circle> element to use geometry properties 2024-03-04 10:50:32 +01:00
SVGCircleElement.idl IDL: Add missing spec links 2023-11-11 08:51:51 +01:00
SVGClipPathElement.cpp LibWeb: Lay out SVG <clipPath> uses 2024-03-29 21:59:56 +01:00
SVGClipPathElement.h LibWeb: Lay out SVG <clipPath> uses 2024-03-29 21:59:56 +01:00
SVGClipPathElement.idl IDL: Add missing #imports 2023-11-11 08:51:51 +01:00
SVGDecodedImageData.cpp LibWeb: Paint SVGDecodedImageData via Navigable::paint() 2024-03-30 21:35:22 +01:00
SVGDecodedImageData.h AK+LibURL: Move AK::URL into a new URL library 2024-03-18 14:06:28 -04:00
SVGDefsElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGDefsElement.h LibWeb: Special case SVG masks during layout 2024-03-12 08:51:50 +01:00
SVGDefsElement.idl IDL: Add missing spec links 2023-11-11 08:51:51 +01:00
SVGElement.cpp LibWeb: Add (and use) CSS property to SVGAnimatedLength helper 2024-04-01 21:10:35 +02:00
SVGElement.h LibWeb: Add (and use) CSS property to SVGAnimatedLength helper 2024-04-01 21:10:35 +02:00
SVGElement.idl
SVGEllipseElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGEllipseElement.h LibWeb: Update SVG get_path() API to take a viewport size 2024-03-04 10:50:32 +01:00
SVGEllipseElement.idl IDL: Add missing spec links 2023-11-11 08:51:51 +01:00
SVGFitToViewBox.idl LibWeb: Add SVGSVGElement.viewBox attribute 2024-01-25 08:23:41 +01:00
SVGForeignObjectElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGForeignObjectElement.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
SVGForeignObjectElement.idl IDL: Add missing #imports 2023-11-11 08:51:51 +01:00
SVGGElement.cpp LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
SVGGElement.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
SVGGeometryElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGGeometryElement.h LibWeb: Update SVG get_path() API to take a viewport size 2024-03-04 10:50:32 +01:00
SVGGeometryElement.idl
SVGGradientElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGGradientElement.h LibWeb: Handle reference cycles in SVG gradient linking 2024-03-11 18:29:10 +01:00
SVGGradientElement.idl IDL: Add missing spec links 2023-11-11 08:51:51 +01:00
SVGGraphicsElement.cpp LibWeb: Stub SVGGraphicsElement methods/attributes 2024-04-01 21:10:35 +02:00
SVGGraphicsElement.h LibWeb: Stub SVGGraphicsElement methods/attributes 2024-04-01 21:10:35 +02:00
SVGGraphicsElement.idl LibWeb: Stub SVGGraphicsElement methods/attributes 2024-04-01 21:10:35 +02:00
SVGLength.cpp LibWeb: Move SVGLength unit constants to header 2024-04-01 21:10:35 +02:00
SVGLength.h LibWeb: Move SVGLength unit constants to header 2024-04-01 21:10:35 +02:00
SVGLength.idl
SVGLinearGradientElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGLinearGradientElement.h LibWeb: Handle reference cycles in SVG gradient linking 2024-03-11 18:29:10 +01:00
SVGLinearGradientElement.idl IDL: Add missing #imports 2023-11-11 08:51:51 +01:00
SVGLineElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGLineElement.h LibWeb: Update SVG get_path() API to take a viewport size 2024-03-04 10:50:32 +01:00
SVGLineElement.idl IDL: Add missing spec links 2023-11-11 08:51:51 +01:00
SVGMaskElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGMaskElement.h LibWeb: Special case SVG masks during layout 2024-03-12 08:51:50 +01:00
SVGMaskElement.idl IDL: Add missing #imports 2023-11-11 08:51:51 +01:00
SVGPathElement.cpp LibGfx: Simplify path storage and tidy up APIs 2024-03-18 07:09:37 +01:00
SVGPathElement.h LibWeb: Update SVG get_path() API to take a viewport size 2024-03-04 10:50:32 +01:00
SVGPathElement.idl
SVGPolygonElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGPolygonElement.h LibWeb: Update SVG get_path() API to take a viewport size 2024-03-04 10:50:32 +01:00
SVGPolygonElement.idl IDL: Add missing spec links 2023-11-11 08:51:51 +01:00
SVGPolylineElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGPolylineElement.h LibWeb: Update SVG get_path() API to take a viewport size 2024-03-04 10:50:32 +01:00
SVGPolylineElement.idl IDL: Add missing spec links 2023-11-11 08:51:51 +01:00
SVGRadialGradientElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGRadialGradientElement.h LibWeb: Handle reference cycles in SVG gradient linking 2024-03-11 18:29:10 +01:00
SVGRadialGradientElement.idl IDL: Add missing #imports 2023-11-11 08:51:51 +01:00
SVGRectElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGRectElement.h LibWeb: Update SVG get_path() API to take a viewport size 2024-03-04 10:50:32 +01:00
SVGRectElement.idl IDL: Add missing spec links 2023-11-11 08:51:51 +01:00
SVGScriptElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGScriptElement.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
SVGScriptElement.idl IDL: Add missing #imports 2023-11-11 08:51:51 +01:00
SVGStopElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGStopElement.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
SVGStopElement.idl IDL: Add missing spec links 2023-11-11 08:51:51 +01:00
SVGStyleElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGStyleElement.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
SVGStyleElement.idl IDL: Add missing spec links 2023-11-11 08:51:51 +01:00
SVGSVGElement.cpp LibWeb: Stub (and implement) SVGSVGElement methods and attributes 2024-04-01 21:10:35 +02:00
SVGSVGElement.h LibWeb: Stub (and implement) SVGSVGElement methods and attributes 2024-04-01 21:10:35 +02:00
SVGSVGElement.idl LibWeb: Stub (and implement) SVGSVGElement methods and attributes 2024-04-01 21:10:35 +02:00
SVGSymbolElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGSymbolElement.h LibWeb: Add initial support for nesting SVG viewports 2024-01-27 18:12:13 +01:00
SVGSymbolElement.idl
SVGTextContentElement.cpp LibWeb: Stub SVGTextContentElement.getStartPositionOfChar() 2024-04-01 21:10:35 +02:00
SVGTextContentElement.h LibWeb: Stub SVGTextContentElement.getStartPositionOfChar() 2024-04-01 21:10:35 +02:00
SVGTextContentElement.idl LibWeb: Stub SVGTextContentElement.getStartPositionOfChar() 2024-04-01 21:10:35 +02:00
SVGTextElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGTextElement.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
SVGTextElement.idl LibWeb: Split SVGTextContentElement into spec defined subclasses 2023-07-23 06:32:39 +02:00
SVGTextPathElement.cpp AK+LibURL: Move AK::URL into a new URL library 2024-03-18 14:06:28 -04:00
SVGTextPathElement.h LibWeb: Add SVGURIReference 2023-12-30 18:50:29 +01:00
SVGTextPathElement.idl LibWeb: Format all .idl files to use four space indentation 2024-01-18 14:00:06 +01:00
SVGTextPositioningElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGTextPositioningElement.h LibWeb: Port Element::attribute_changed from DeprecatedString to String 2023-11-19 08:16:34 +00:00
SVGTextPositioningElement.idl LibWeb: Add comments and missing items of various IDL files 2023-10-25 19:45:41 +02:00
SVGTitleElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGTitleElement.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
SVGTitleElement.idl
SVGTransform.cpp LibWeb: Stub out SVGTransform 2024-04-01 21:10:35 +02:00
SVGTransform.h LibWeb: Stub out SVGTransform 2024-04-01 21:10:35 +02:00
SVGTransform.idl LibWeb: Stub out SVGTransform 2024-04-01 21:10:35 +02:00
SVGTransformList.cpp LibWeb: Stub out SVGTransformList 2024-04-01 21:10:35 +02:00
SVGTransformList.h LibWeb: Stub out SVGTransformList 2024-04-01 21:10:35 +02:00
SVGTransformList.idl LibWeb: Stub out SVGTransformList 2024-04-01 21:10:35 +02:00
SVGTSpanElement.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
SVGTSpanElement.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
SVGTSpanElement.idl LibWeb: Add support for SVG <tspan> elements 2023-07-23 06:32:39 +02:00
SVGURIReference.h LibWeb: Add SVGURIReference 2023-12-30 18:50:29 +01:00
SVGURIReference.idl LibWeb: Add SVGURIReference 2023-12-30 18:50:29 +01:00
SVGUseElement.cpp LibWeb: Allow references via xlink:href for SVG <use> elements 2024-03-29 21:59:56 +01:00
SVGUseElement.h LibWeb: Implement SVGUseElement#href 2023-12-30 18:50:29 +01:00
SVGUseElement.idl LibWeb: Implement SVGUseElement#href 2023-12-30 18:50:29 +01:00
SVGViewport.h LibWeb: Update SVG <circle> element to use geometry properties 2024-03-04 10:50:32 +01:00
TagNames.cpp LibWeb: Port SVG::TagNames from DeprecatedFlyString 2023-10-08 08:11:48 -04:00
TagNames.h LibWeb: Add initial support for SVG <textPath> 2023-12-19 21:29:03 +01:00
ViewBox.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
ViewBox.h