mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Stub out SVGGraphicsElement.getCTM()
We already did this for getScreenCTM().
This commit is contained in:
parent
1dc6425ede
commit
2194cbde4b
Notes:
github-actions[bot]
2025-05-16 18:37:02 +00:00
Author: https://github.com/awesomekling
Commit: 2194cbde4b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4775
4 changed files with 28 additions and 21 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -14,6 +14,6 @@ interface SVGGraphicsElement : SVGElement {
|
|||
[SameObject] readonly attribute SVGAnimatedTransformList transform;
|
||||
|
||||
DOMRect getBBox(optional SVGBoundingBoxOptions options = {});
|
||||
[FIXME] DOMMatrix? getCTM();
|
||||
DOMMatrix? getCTM();
|
||||
DOMMatrix? getScreenCTM();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue