mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb/SVG: Implement SVGTransformList.length
This commit is contained in:
parent
ad9457b725
commit
4a1d02e7d8
Notes:
sideshowbarker
2024-07-17 03:03:15 +09:00
Author: https://github.com/jamierocks
Commit: 4a1d02e7d8
Pull-request: https://github.com/SerenityOS/serenity/pull/24525
3 changed files with 10 additions and 1 deletions
|
@ -23,6 +23,13 @@ SVGTransformList::~SVGTransformList() = default;
|
|||
SVGTransformList::SVGTransformList(JS::Realm& realm)
|
||||
: PlatformObject(realm) {};
|
||||
|
||||
// https://svgwg.org/svg2-draft/single-page.html#types-__svg__SVGNameList__length
|
||||
WebIDL::UnsignedLong SVGTransformList::length()
|
||||
{
|
||||
// The length and numberOfItems IDL attributes represents the length of the list, and on getting simply return the length of the list.
|
||||
return m_transforms.size();
|
||||
}
|
||||
|
||||
// https://svgwg.org/svg2-draft/single-page.html#types-__svg__SVGNameList__getItem
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<SVGTransform>> SVGTransformList::get_item(WebIDL::UnsignedLong index)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue