summaryrefslogtreecommitdiffstats
path: root/WebCore/mathml/RenderMathMLSquareRoot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/mathml/RenderMathMLSquareRoot.cpp')
-rw-r--r--WebCore/mathml/RenderMathMLSquareRoot.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/WebCore/mathml/RenderMathMLSquareRoot.cpp b/WebCore/mathml/RenderMathMLSquareRoot.cpp
index 1285acd..862d8a4 100644
--- a/WebCore/mathml/RenderMathMLSquareRoot.cpp
+++ b/WebCore/mathml/RenderMathMLSquareRoot.cpp
@@ -132,8 +132,10 @@ void RenderMathMLSquareRoot::paint(PaintInfo& info, int tx, int ty)
root.addLineTo(topLeft);
// draw to end
root.addLineTo(leftEnd);
-
- info.context->strokePath(root);
+
+ info.context->beginPath();
+ info.context->addPath(root);
+ info.context->strokePath();
info.context->save();
@@ -145,6 +147,8 @@ 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.
@@ -155,7 +159,9 @@ void RenderMathMLSquareRoot::paint(PaintInfo& info, int tx, int ty)
line.moveTo(bottomLeft);
line.addLineTo(topLeft);
- info.context->strokePath(line);
+ info.context->beginPath();
+ info.context->addPath(line);
+ info.context->strokePath();
info.context->restore();