Backed out changeset 843e65079be1 (bug 1850727) for causing build bustages in DrawTargetWebgl.cpp CLOSED TREE

This commit is contained in:
Cristian Tuns 2023-09-01 10:47:04 -04:00
Родитель f1dafb3dba
Коммит 71c48e2685
4 изменённых файлов: 0 добавлений и 39 удалений

Просмотреть файл

@ -3118,10 +3118,6 @@ already_AddRefed<TextureHandle> DrawTargetWebgl::SharedContext::DrawStrokeMask(
mWebgl->UniformData(LOCAL_GL_FLOAT_VEC2, mSolidProgramTransform, false,
{(const uint8_t*)xformData, sizeof(xformData)});
// Ensure the current clip mask is ignored.
RefPtr<WebGLTexture> prevClipMask = mLastClipMask;
SetNoClipMask();
// Draw the mask using the supplied path vertex range.
mWebgl->DrawArrays(LOCAL_GL_TRIANGLES, GLint(aVertexRange.mOffset),
GLsizei(aVertexRange.mLength));
@ -3132,7 +3128,6 @@ already_AddRefed<TextureHandle> DrawTargetWebgl::SharedContext::DrawStrokeMask(
mDirtyViewport = true;
mDirtyAA = true;
mDirtyClip = true;
SetClipMask(prevClipMask);
return handle.forget();
}

Просмотреть файл

@ -1,6 +0,0 @@
<!DOCTYPE html>
<html>
<body>
<canvas id="c" width="200" height="200"></canvas>
</body>
</html>

Просмотреть файл

@ -1,26 +0,0 @@
<!DOCTYPE html>
<html>
<body>
<canvas id="c" width="200" height="200"></canvas>
<script>
const c = document.getElementById("c");
const ctx = c.getContext("2d");
ctx.translate(20, 20);
ctx.beginPath();
ctx.arc(0, 0, 15, 0, 2 * Math.PI);
ctx.clip();
ctx.beginPath();
ctx.arc(0, 0, 10, 0, 2 * Math.PI);
ctx.lineWidth = 2;
ctx.globalAlpha = 0.5;
ctx.strokeStyle = '#00ff00';
ctx.stroke();
</script>
</body>
</html>

Просмотреть файл

@ -123,5 +123,3 @@ fuzzy-if(winWidget,0-94,0-1575) fuzzy-if(cocoaWidget,0-1,0-34) == 1304353-text-g
!= 1846079-1.html 1846079-1-ref.html
== 1850284-1.html 1850284-1-ref.html
!= 1850727-1.html 1850727-1-ref.html