summaryrefslogtreecommitdiffstats
path: root/WebCore/mathml/RenderMathMLRoot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/mathml/RenderMathMLRoot.cpp')
-rw-r--r--WebCore/mathml/RenderMathMLRoot.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/WebCore/mathml/RenderMathMLRoot.cpp b/WebCore/mathml/RenderMathMLRoot.cpp
index 23e3519..c624539 100644
--- a/WebCore/mathml/RenderMathMLRoot.cpp
+++ b/WebCore/mathml/RenderMathMLRoot.cpp
@@ -97,6 +97,9 @@ void RenderMathMLRoot::paint(PaintInfo& info, int tx, int ty)
{
RenderMathMLBlock::paint(info , tx , ty);
+ if (info.context->paintingDisabled())
+ return;
+
tx += x();
ty += y();
@@ -145,7 +148,7 @@ void RenderMathMLRoot::paint(PaintInfo& info, int tx, int ty)
info.context->setStrokeThickness(gRadicalLineThickness * style()->fontSize());
info.context->setStrokeStyle(SolidStroke);
- info.context->setStrokeColor(style()->color(), sRGBColorSpace);
+ info.context->setStrokeColor(style()->visitedDependentColor(CSSPropertyColor), sRGBColorSpace);
info.context->setLineJoin(MiterJoin);
info.context->setMiterLimit(style()->fontSize());
@@ -204,8 +207,7 @@ void RenderMathMLRoot::layout()
int maxHeight = toRenderBoxModelObject(lastChild())->offsetHeight();
RenderObject* current = lastChild()->firstChild();
-
- toRenderMathMLBlock(current)->style()->setVerticalAlign(BASELINE);
+ current->style()->setVerticalAlign(BASELINE);
if (!maxHeight)
maxHeight = style()->fontSize();
@@ -238,9 +240,11 @@ void RenderMathMLRoot::layout()
setNeedsLayoutAndPrefWidthsRecalc();
markContainingBlocksForLayout();
RenderBlock::layout();
-
+
indexBox->style()->setBottom(Length(radicalHeight + style()->paddingBottom().value(), Fixed));
-
+
+ // Now that we've potentially changed its position, we need layout the index again.
+ indexBox->setNeedsLayoutAndPrefWidthsRecalc();
indexBox->layout();
}