diff options
Diffstat (limited to 'WebCore/mathml/RenderMathMLSquareRoot.cpp')
-rw-r--r-- | WebCore/mathml/RenderMathMLSquareRoot.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/WebCore/mathml/RenderMathMLSquareRoot.cpp b/WebCore/mathml/RenderMathMLSquareRoot.cpp index 862d8a4..1285acd 100644 --- a/WebCore/mathml/RenderMathMLSquareRoot.cpp +++ b/WebCore/mathml/RenderMathMLSquareRoot.cpp @@ -132,10 +132,8 @@ void RenderMathMLSquareRoot::paint(PaintInfo& info, int tx, int ty) root.addLineTo(topLeft); // draw to end root.addLineTo(leftEnd); - - info.context->beginPath(); - info.context->addPath(root); - info.context->strokePath(); + + info.context->strokePath(root); info.context->save(); @@ -147,8 +145,6 @@ void RenderMathMLSquareRoot::paint(PaintInfo& info, int tx, int ty) mask.addLineTo(topLeft); mask.addLineTo(FloatPoint(2 * topLeft.x() - leftEnd.x(), 2 * topLeft.y() - leftEnd.y())); - info.context->beginPath(); - info.context->addPath(mask); info.context->clip(mask); // Draw the thick part of the root. @@ -159,9 +155,7 @@ void RenderMathMLSquareRoot::paint(PaintInfo& info, int tx, int ty) line.moveTo(bottomLeft); line.addLineTo(topLeft); - info.context->beginPath(); - info.context->addPath(line); - info.context->strokePath(); + info.context->strokePath(line); info.context->restore(); |