mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibWeb: Stub out SVGGraphicsElement.getScreenCTM()
This allows us to run Speedometer 3.0 to completion. :^)
This commit is contained in:
parent
39f844f77c
commit
72320be124
Notes:
github-actions[bot]
2024-11-09 23:44:36 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/72320be1240
3 changed files with 9 additions and 1 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue