diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2017-06-28 21:47:18 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-03 23:56:01 +0100 |
commit | de11930c3fecac13bc06da4f8b7818178c63f20e (patch) | |
tree | ca400d834e923d8ddb49097acde48868cf22d7a6 /layout/svg/nsSVGOuterSVGFrame.h | |
parent | 10494e1b7d0b3cd945bb76dca10f5637cf786f27 (diff) | |
download | UXP-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.h | 5 |
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 |