mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
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:
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();
|
||||
};
|
||||
Reference in new issue
Block a user