зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1357092 - Make EnsureWritablePath() always try to create a mPathBuilder, also when we don't have a valid target (i.e. for sErrorTarget). r=mstange
MozReview-Commit-ID: AzyZOpsIdwA
This commit is contained in:
Родитель
022156f613
Коммит
b73a39811b
|
@ -3801,9 +3801,8 @@ void
|
|||
CanvasRenderingContext2D::EnsureWritablePath()
|
||||
{
|
||||
EnsureTarget();
|
||||
if (!IsTargetValid()) {
|
||||
return;
|
||||
}
|
||||
// NOTE: IsTargetValid() may be false here (mTarget == sErrorTarget) but we
|
||||
// go ahead and create a path anyway since callers depend on that.
|
||||
|
||||
if (mDSPathBuilder) {
|
||||
return;
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<html>
|
||||
<head>
|
||||
<script>
|
||||
o1 = document.createElement("canvas");
|
||||
o1.setAttribute("width", "100000");
|
||||
o2 = o1.getContext("2d");
|
||||
o2.bezierCurveTo(64, 1, 1, 1, 1, 1);
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
|
@ -42,4 +42,4 @@ load 1305312-1.html
|
|||
load 1298576-1.html
|
||||
load 1334366-1.html
|
||||
load 1334647-1.html
|
||||
|
||||
load 1357092.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче