summaryrefslogtreecommitdiffstats
path: root/layout/svg/nsSVGOuterSVGFrame.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-06-28 21:47:18 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-03 23:56:01 +0100
commitde11930c3fecac13bc06da4f8b7818178c63f20e (patch)
treeca400d834e923d8ddb49097acde48868cf22d7a6 /layout/svg/nsSVGOuterSVGFrame.h
parent10494e1b7d0b3cd945bb76dca10f5637cf786f27 (diff)
downloadUXP-de11930c3fecac13bc06da4f8b7818178c63f20e.tar
UXP-de11930c3fecac13bc06da4f8b7818178c63f20e.tar.gz
UXP-de11930c3fecac13bc06da4f8b7818178c63f20e.tar.lz
UXP-de11930c3fecac13bc06da4f8b7818178c63f20e.tar.xz
UXP-de11930c3fecac13bc06da4f8b7818178c63f20e.zip
Only create a single display transform for SVG frames with single child transforms.
This improves performance on repeated scaling of vectors.
Diffstat (limited to 'layout/svg/nsSVGOuterSVGFrame.h')
-rw-r--r--layout/svg/nsSVGOuterSVGFrame.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/layout/svg/nsSVGOuterSVGFrame.h b/layout/svg/nsSVGOuterSVGFrame.h
index a08593678..6d29234ac 100644
--- a/layout/svg/nsSVGOuterSVGFrame.h
+++ b/layout/svg/nsSVGOuterSVGFrame.h
@@ -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