Backed out changeset 7bffe6c8fd4d (bug 1177726) for test regressions in 1177726-text-stroke-bounds.html on a CLOSED TREE

This commit is contained in:
Carsten "Tomcat" Book 2015-07-09 13:02:13 +02:00
parent 733b9da98f
commit df96a32d9c
4 changed files with 1 additions and 61 deletions

View File

@ -3554,18 +3554,12 @@ struct MOZ_STACK_CLASS CanvasBidiProcessor : public nsBidiPresUtils::BidiProcess
buffer.mGlyphs = &glyphBuf.front();
buffer.mNumGlyphs = 1;
const ContextState& state = *mState;
AdjustedTarget target(mCtx, &bounds);
const StrokeOptions strokeOpts(state.lineWidth, state.lineJoin,
state.lineCap, state.miterLimit,
state.dash.Length(),
state.dash.Elements(),
state.dashOffset);
// We need to adjust the bounds for the adjusted target
bounds.Inflate(MaxStrokeExtents(strokeOpts, mCtx->mTarget->GetTransform()));
AdjustedTarget target(mCtx, &bounds);
CanvasGeneralPattern cgp;
const Pattern& patForStyle
(cgp.ForStyle(mCtx, CanvasRenderingContext2D::Style::STROKE, mCtx->mTarget));

View File

@ -1,24 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Testcase for bug 1177726</title>
</head>
<body>
<canvas id="c" width="400" height="200">
<p>No canvas.</p>
</canvas>
<script>
var canvas = document.getElementsByTagName("canvas")[0];
var ctx = canvas.getContext('2d');
ctx.font = "120px 'Helvetica'";
ctx.lineWidth = 15;
ctx.lineJoin = "round";
ctx.strokeText("Ehsan", 20, 110);
</script>
</body>
</html>

View File

@ -1,28 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Testcase for bug 1177726</title>
</head>
<body>
<canvas id="c" width="400" height="200">
<p>No canvas.</p>
</canvas>
<script>
var canvas = document.getElementsByTagName("canvas")[0];
var ctx = canvas.getContext('2d');
ctx.shadowColor = 'white';
ctx.shadowOffsetX = 5;
ctx.shadowOffsetY = 5;
ctx.shadowBlur = 0;
ctx.font = "120px 'Helvetica'";
ctx.lineWidth = 15;
ctx.lineJoin = "round";
ctx.strokeText("Ehsan", 20, 110);
</script>
</body>
</html>

View File

@ -158,5 +158,3 @@ pref(canvas.customfocusring.enabled,true) skip-if(B2G) skip-if(Android&&AndroidV
# Check that captureStream() displays in a local video element
pref(canvas.capturestream.enabled,true) skip-if(winWidget&&layersGPUAccelerated&&d2d) == capturestream.html wrapper.html?green.png
== 1177726-text-stroke-bounds.html 1177726-text-stroke-bounds-ref.html