summaryrefslogtreecommitdiff
path: root/layout/svg
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-08-14 15:09:34 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-08-14 15:09:34 +0200
commitc67d673d4f80bd22c8db2b5d691b4fde4d146ea0 (patch)
tree045635cf4520caea4408cd477f11ba205d1d4972 /layout/svg
parentbe12aaf416c67b516821c1a95d95544b4e2ae5ce (diff)
downloaduxp-c67d673d4f80bd22c8db2b5d691b4fde4d146ea0.tar.gz
Issue #438: Check for non-rectilinear transforms
Diffstat (limited to 'layout/svg')
-rw-r--r--layout/svg/nsSVGOuterSVGFrame.cpp3
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.