diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-08-14 15:09:34 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-08-14 15:09:34 +0200 |
commit | c67d673d4f80bd22c8db2b5d691b4fde4d146ea0 (patch) | |
tree | 045635cf4520caea4408cd477f11ba205d1d4972 /layout/svg | |
parent | be12aaf416c67b516821c1a95d95544b4e2ae5ce (diff) | |
download | uxp-c67d673d4f80bd22c8db2b5d691b4fde4d146ea0.tar.gz |
Issue #438: Check for non-rectilinear transforms
Diffstat (limited to 'layout/svg')
-rw-r--r-- | layout/svg/nsSVGOuterSVGFrame.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layout/svg/nsSVGOuterSVGFrame.cpp b/layout/svg/nsSVGOuterSVGFrame.cpp index e1b97bb40b..434676010d 100644 --- a/layout/svg/nsSVGOuterSVGFrame.cpp +++ b/layout/svg/nsSVGOuterSVGFrame.cpp @@ -1006,6 +1006,9 @@ nsSVGOuterSVGAnonChildFrame::IsSVGTransformed(Matrix* aOwnTransform, if (ownMatrix.HasNonTranslation()) { // Note: viewBox, currentScale and currentTranslate should only // produce a rectilinear transform. + MOZ_ASSERT(ownMatrix.IsRectilinear(), + "Non-rectilinear transform will break the following logic"); + // The nsDisplayTransform code will apply this transform to our frame, // including to our frame position. We don't want our frame position to // be scaled though, so we need to correct for that in the transform. |