Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions ed/idlpatches/svg-paths.idl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
From f897418ac4ae06110152d1512f3bd779348427c3 Mon Sep 17 00:00:00 2001
From: Francois Daoust <[email protected]>
Date: Thu, 6 Mar 2025 16:11:18 +0100
Subject: [PATCH] Fix Web IDL

Pending resolution of https://github.com/w3c/svgwg/issues/964
---
ed/idl/svg-paths.idl | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/ed/idl/svg-paths.idl b/ed/idl/svg-paths.idl
index e432cc0ad..2f0813572 100644
--- a/ed/idl/svg-paths.idl
+++ b/ed/idl/svg-paths.idl
@@ -3,21 +3,22 @@
// (https://github.com/w3c/webref)
// Source: SVG Paths (https://svgwg.org/specs/paths/)

-[NoInterfaceObject]
+[LegacyNoInterfaceObject, Exposed=Window]
interface SVGPathSegment {
- DOMString type;
- sequence<float> values;
+ attribute DOMString type;
+ attribute FrozenArray<float> values;
};

dictionary SVGPathDataSettings {
boolean normalize = false;
-}
+};

interface mixin SVGPathData {
sequence<SVGPathSegment> getPathData(optional SVGPathDataSettings settings = {});
undefined setPathData(sequence<SVGPathSegment> pathData);
};

+[Exposed=Window]
interface SVGPathElement : SVGGeometryElement {

readonly attribute SVGAnimatedNumber pathLength;
--
2.37.1.windows.1

Loading