mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Only create a single display transform for SVG frames with single child transforms.
This improves performance on repeated scaling of vectors.
This commit is contained in:
parent
93578c788f
commit
fafc5f0ec1
2 changed files with 36 additions and 13 deletions
|
|
@ -263,6 +263,9 @@ public:
|
|||
*/
|
||||
virtual nsIAtom* GetType() const override;
|
||||
|
||||
bool IsSVGTransformed(Matrix *aOwnTransform,
|
||||
Matrix *aFromParentTransform) const override;
|
||||
|
||||
// nsSVGContainerFrame methods:
|
||||
virtual gfxMatrix GetCanvasTM() override {
|
||||
// GetCanvasTM returns the transform from an SVG frame to the frame's
|
||||
|
|
@ -270,8 +273,6 @@ public:
|
|||
// set on us for any CSS border or padding on our nsSVGOuterSVGFrame.
|
||||
return static_cast<nsSVGOuterSVGFrame*>(GetParent())->GetCanvasTM();
|
||||
}
|
||||
|
||||
virtual bool HasChildrenOnlyTransform(Matrix *aTransform) const override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue