summaryrefslogtreecommitdiffstats
path: root/WebCore/mathml/RenderMathMLFraction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/mathml/RenderMathMLFraction.cpp')
-rw-r--r--WebCore/mathml/RenderMathMLFraction.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/WebCore/mathml/RenderMathMLFraction.cpp b/WebCore/mathml/RenderMathMLFraction.cpp
index cd0681d..72f7298 100644
--- a/WebCore/mathml/RenderMathMLFraction.cpp
+++ b/WebCore/mathml/RenderMathMLFraction.cpp
@@ -122,23 +122,22 @@ void RenderMathMLFraction::addChild(RenderObject* child, RenderObject* beforeChi
void RenderMathMLFraction::layout()
{
updateFromElement();
-
+
// Adjust the fraction line thickness for the zoom
if (lastChild() && lastChild()->isRenderBlock())
- m_lineThickness = m_lineThickness * ceil(gFractionBarWidth * style()->fontSize());
-
+ m_lineThickness = static_cast<int>(m_lineThickness * ceil(gFractionBarWidth * style()->fontSize()));
+
RenderBlock::layout();
-
+
// The row layout can affect the numerator/denominator width.
// FIXME: This is probably only needed if one of the children
// contains an mrow.
setNeedsLayoutAndPrefWidthsRecalc();
markContainingBlocksForLayout();
-
+
RenderBlock::layout();
-
}
-
+
void RenderMathMLFraction::paint(PaintInfo& info, int tx, int ty)
{
RenderMathMLBlock::paint(info, tx, ty);