summaryrefslogtreecommitdiff
path: root/dom/canvas
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-10-15 13:00:14 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-01 15:23:31 +0200
commitd5934d65de2a1b5f2447aff8a6baaaeae04c0648 (patch)
treea6f573e98e112db349d0df7f905a7e858abd4bd0 /dom/canvas
parent39f9ab375b2bfd9e46df9695b78870cf1e9cf3c6 (diff)
downloaduxp-d5934d65de2a1b5f2447aff8a6baaaeae04c0648.tar.gz
Issue #1053 - Remove some Android compiler/runtime bug workarounds.
Diffstat (limited to 'dom/canvas')
-rw-r--r--dom/canvas/CanvasRenderingContext2D.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/dom/canvas/CanvasRenderingContext2D.cpp b/dom/canvas/CanvasRenderingContext2D.cpp
index 111519c719..275aaf8d02 100644
--- a/dom/canvas/CanvasRenderingContext2D.cpp
+++ b/dom/canvas/CanvasRenderingContext2D.cpp
@@ -4520,9 +4520,7 @@ CanvasRenderingContext2D::DrawOrMeasureText(const nsAString& aRawText,
newTransform.PreTranslate(aX, 0);
newTransform.PreScale(aMaxWidth.Value() / totalWidth, 1);
newTransform.PreTranslate(-aX, 0);
- /* we do this to avoid an ICE in the android compiler */
- Matrix androidCompilerBug = newTransform;
- mTarget->SetTransform(androidCompilerBug);
+ mTarget->SetTransform(newTransform);
}
// save the previous bounding box