LibWeb: Stub out SVGGraphicsElement.getScreenCTM()

This allows us to run Speedometer 3.0 to completion. :^)

(cherry picked from commit 72320be1240039822693aa1659c4adbb24cde87f)
This commit is contained in:
Andreas Kling authored and Nico Weber committed 2024-11-11 09:17:08 -05:00
1 parent 7816e173fa
commit fcc40ca35f
3 files changed
+9 -1

No files matched your search

@@ -316,4 +316,10 @@ JS::NonnullGCPtr<SVGAnimatedTransformList> SVGGraphicsElement::transform() const
return SVGAnimatedTransformList::create(realm(), base_val, anim_val);
}
JS::GCPtr<Geometry::DOMMatrix> SVGGraphicsElement::get_screen_ctm()
{
dbgln("(STUBBED) SVGGraphicsElement::get_screen_ctm(). Called on: {}", debug_description());
return Geometry::DOMMatrix::create(realm());
}
}
@@ -63,6 +63,8 @@ public:
JS::NonnullGCPtr<Geometry::DOMRect> get_b_box(Optional<SVGBoundingBoxOptions>);
JS::NonnullGCPtr<SVGAnimatedTransformList> transform() const;
JS::GCPtr<Geometry::DOMMatrix> get_screen_ctm();
protected:
SVGGraphicsElement(DOM::Document&, DOM::QualifiedName);
@@ -15,5 +15,5 @@ interface SVGGraphicsElement : SVGElement {
DOMRect getBBox(optional SVGBoundingBoxOptions options = {});
[FIXME] DOMMatrix? getCTM();
[FIXME] DOMMatrix? getScreenCTM();
DOMMatrix? getScreenCTM();
};