LibWeb: Stub out SVGGraphicsElement.getScreenCTM()

This allows us to run Speedometer 3.0 to completion. :^)
This commit is contained in:
Andreas Kling 2024-11-09 18:30:38 +01:00
parent 39f844f77c
commit 72320be124
Notes: github-actions[bot] 2024-11-09 23:44:36 +00:00
3 changed files with 9 additions and 1 deletions

View file

@ -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());
}
}

View file

@ -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);

View file

@ -15,5 +15,5 @@ interface SVGGraphicsElement : SVGElement {
DOMRect getBBox(optional SVGBoundingBoxOptions options = {});
[FIXME] DOMMatrix? getCTM();
[FIXME] DOMMatrix? getScreenCTM();
DOMMatrix? getScreenCTM();
};