From d944b9f5c5d02e0310cb2c432e0c08f0b009c9b1 Mon Sep 17 00:00:00 2001 From: "karlt+%karlt.net" Date: Mon, 14 Jan 2008 02:10:29 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20412033=20=C3=A2=C2=80=C2=93=20non-stretch?= =?UTF-8?q?y-or-centred=20operators=20don't=20paint=20on=20scrolling.=20Do?= =?UTF-8?q?n't=20change=20the=20size=20of=20child=20frames.=20r+sr=3Droc,?= =?UTF-8?q?=20a=3Dschrep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@243028 18797224-902f-48f8-a5cc-f745e15eee43 --- .../layout/mathml/base/src/nsMathMLmoFrame.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/mozilla/layout/mathml/base/src/nsMathMLmoFrame.cpp b/mozilla/layout/mathml/base/src/nsMathMLmoFrame.cpp index 4193a614dbe..c0e043a40bb 100644 --- a/mozilla/layout/mathml/base/src/nsMathMLmoFrame.cpp +++ b/mozilla/layout/mathml/base/src/nsMathMLmoFrame.cpp @@ -892,19 +892,10 @@ nsMathMLmoFrame::Stretch(nsIRenderingContext& aRenderingContext, // Set our overflow area GatherAndStoreOverflow(&aDesiredStretchSize); - if (mFrames.GetLength() != 1) - return NS_OK; + // There used to be code here to change the height of the child frame to + // change the caret height, but the text frame that manages the caret is now + // not a direct child but wrapped in a block frame. See also bug 412033. - nsRect rect = firstChild->GetRect(); - if (useMathMLChar) { - // even though our child text frame is not doing the rendering, we make it play - // nice with other operations that the MathMLChar doesn't handle (e.g., caret) - // use our whole height (i.e., with the leading that isn't part of the MathMLChar) - mMathMLChar.GetRect(rect); - rect.y = 0; - } - rect.height = aDesiredStretchSize.height; - firstChild->SetRect(rect); return NS_OK; }