diff options
Diffstat (limited to 'WebCore/mathml/RenderMathMLRoot.cpp')
-rw-r--r-- | WebCore/mathml/RenderMathMLRoot.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/WebCore/mathml/RenderMathMLRoot.cpp b/WebCore/mathml/RenderMathMLRoot.cpp index ba60c9f..f0a7abb 100644 --- a/WebCore/mathml/RenderMathMLRoot.cpp +++ b/WebCore/mathml/RenderMathMLRoot.cpp @@ -167,9 +167,7 @@ void RenderMathMLRoot::paint(PaintInfo& info, int tx, int ty) // draw to end root.addLineTo(leftEnd); - info.context->beginPath(); - info.context->addPath(root); - info.context->strokePath(); + info.context->strokePath(root); info.context->save(); @@ -181,8 +179,6 @@ void RenderMathMLRoot::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. @@ -193,9 +189,7 @@ void RenderMathMLRoot::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(); |