mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Make the caret appear properly on invisible MathML operators, b=188146, r+sr=roc+moz
This commit is contained in:
parent
4fc7ca90b4
commit
29b26717cc
@ -207,9 +207,6 @@ nsMathMLTokenFrame::Place(nsIPresContext* aPresContext,
|
||||
PRBool aPlaceOrigin,
|
||||
nsHTMLReflowMetrics& aDesiredSize)
|
||||
{
|
||||
aDesiredSize.width = aDesiredSize.height = 0;
|
||||
aDesiredSize.ascent = aDesiredSize.descent = 0;
|
||||
|
||||
const nsStyleFont* font;
|
||||
GetStyleData(eStyleStruct_Font, (const nsStyleStruct*&)font);
|
||||
nsCOMPtr<nsIFontMetrics> fm;
|
||||
@ -235,8 +232,8 @@ nsMathMLTokenFrame::Place(nsIPresContext* aPresContext,
|
||||
childSize.width = rect.width;
|
||||
childSize.height = aDesiredSize.height; //rect.height;
|
||||
|
||||
// place and size the child
|
||||
dy = aDesiredSize.ascent - rect.y;
|
||||
// place and size the child; (dx,0) makes the caret happy - bug 188146
|
||||
dy = rect.IsEmpty() ? 0 : aDesiredSize.ascent - rect.y;
|
||||
FinishReflowChild(childFrame, aPresContext, nsnull, childSize, dx, dy, 0);
|
||||
dx += rect.width;
|
||||
childFrame->GetNextSibling(&childFrame);
|
||||
|
Loading…
x
Reference in New Issue
Block a user