LibWeb: Stub out SVGGraphicsElement.getCTM()

We already did this for getScreenCTM().
This commit is contained in:
Andreas Kling 2025-05-09 12:30:56 +02:00 committed by Andreas Kling
commit 2194cbde4b
Notes: github-actions[bot] 2025-05-16 18:37:02 +00:00
4 changed files with 28 additions and 21 deletions

View file

@ -324,4 +324,10 @@ GC::Ptr<Geometry::DOMMatrix> SVGGraphicsElement::get_screen_ctm()
return Geometry::DOMMatrix::create(realm());
}
GC::Ptr<Geometry::DOMMatrix> SVGGraphicsElement::get_ctm()
{
dbgln("(STUBBED) SVGGraphicsElement::get_ctm(). Called on: {}", debug_description());
return Geometry::DOMMatrix::create(realm());
}
}

View file

@ -63,6 +63,7 @@ public:
GC::Ref<Geometry::DOMRect> get_b_box(Optional<SVGBoundingBoxOptions>);
GC::Ref<SVGAnimatedTransformList> transform() const;
GC::Ptr<Geometry::DOMMatrix> get_ctm();
GC::Ptr<Geometry::DOMMatrix> get_screen_ctm();
virtual Gfx::AffineTransform element_transform() const

View file

@ -14,6 +14,6 @@ interface SVGGraphicsElement : SVGElement {
[SameObject] readonly attribute SVGAnimatedTransformList transform;
DOMRect getBBox(optional SVGBoundingBoxOptions options = {});
[FIXME] DOMMatrix? getCTM();
DOMMatrix? getCTM();
DOMMatrix? getScreenCTM();
};