From 187d109cb439388b64cf3528c3a91eb02c7cc600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Wed, 23 Apr 2014 00:28:00 -0400 Subject: [PATCH] Bug 960115 - No longer scale stretchy operators when a variant of any size is found. r=karlt --- layout/mathml/nsMathMLChar.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layout/mathml/nsMathMLChar.cpp b/layout/mathml/nsMathMLChar.cpp index 176265f6cce..f9a3055976f 100644 --- a/layout/mathml/nsMathMLChar.cpp +++ b/layout/mathml/nsMathMLChar.cpp @@ -1763,6 +1763,10 @@ nsMathMLChar::StretchInternal(nsPresContext* aPresContext, mUnscaledAscent = aDesiredStretchSize.ascent; } + if (glyphFound) { + return NS_OK; + } + // stretchy character if (stretchy) { if (isVertical) { @@ -1795,7 +1799,7 @@ nsMathMLChar::StretchInternal(nsPresContext* aPresContext, // We do not have a char variant for this largeop in display mode, so we // apply a scale transform to the base char. - if (!glyphFound && largeop) { + if (largeop) { float scale; float largeopFactor = kLargeOpFactor;