mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb/SVG: Stub SVGTransform.type
This commit is contained in:
parent
bc91c75481
commit
4406d06d26
Notes:
sideshowbarker
2024-07-18 02:47:59 +09:00
Author: https://github.com/jamierocks
Commit: 4406d06d26
Pull-request: https://github.com/SerenityOS/serenity/pull/24231
Reviewed-by: https://github.com/MacDue ✅
3 changed files with 22 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2024, MacDue <macdue@dueutil.tech>
|
* Copyright (c) 2024, MacDue <macdue@dueutil.tech>
|
||||||
|
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -28,4 +29,11 @@ void SVGTransform::initialize(JS::Realm& realm)
|
||||||
WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTransform);
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTransform);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__type
|
||||||
|
SVGTransform::Type SVGTransform::type()
|
||||||
|
{
|
||||||
|
dbgln("FIXME: Implement SVGTransform::type()");
|
||||||
|
return SVGTransform::Type::Unknown;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2024, MacDue <macdue@dueutil.tech>
|
* Copyright (c) 2024, MacDue <macdue@dueutil.tech>
|
||||||
|
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -20,6 +21,18 @@ public:
|
||||||
[[nodiscard]] static JS::NonnullGCPtr<SVGTransform> create(JS::Realm& realm);
|
[[nodiscard]] static JS::NonnullGCPtr<SVGTransform> create(JS::Realm& realm);
|
||||||
virtual ~SVGTransform() override;
|
virtual ~SVGTransform() override;
|
||||||
|
|
||||||
|
enum class Type : u16 {
|
||||||
|
Unknown = 0,
|
||||||
|
Matrix = 1,
|
||||||
|
Translate = 2,
|
||||||
|
Scale = 3,
|
||||||
|
Rotate = 4,
|
||||||
|
SkewX = 5,
|
||||||
|
SkewY = 6,
|
||||||
|
};
|
||||||
|
|
||||||
|
Type type();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SVGTransform(JS::Realm& realm);
|
SVGTransform(JS::Realm& realm);
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ interface SVGTransform {
|
||||||
const unsigned short SVG_TRANSFORM_SKEWX = 5;
|
const unsigned short SVG_TRANSFORM_SKEWX = 5;
|
||||||
const unsigned short SVG_TRANSFORM_SKEWY = 6;
|
const unsigned short SVG_TRANSFORM_SKEWY = 6;
|
||||||
|
|
||||||
// FIXME: readonly attribute unsigned short type;
|
readonly attribute unsigned short type;
|
||||||
// FIXME: [SameObject] readonly attribute DOMMatrix matrix;
|
// FIXME: [SameObject] readonly attribute DOMMatrix matrix;
|
||||||
// FIXME: readonly attribute float angle;
|
// FIXME: readonly attribute float angle;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue