mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 487587 - In mathml formulas, the content of many <mo> elements is not highlighted when selected. r=roc
This commit is contained in:
parent
36357994ba
commit
a76815bc91
@ -100,7 +100,9 @@ nsMathMLmoFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
nsRect selectedRect;
|
||||
nsIFrame* firstChild = mFrames.FirstChild();
|
||||
if (IsFrameInSelection(firstChild)) {
|
||||
selectedRect = firstChild->GetRect();
|
||||
mMathMLChar.GetRect(selectedRect);
|
||||
// add a one pixel border (it renders better for operators like minus)
|
||||
selectedRect.Inflate(nsPresContext::CSSPixelsToAppUnits(1));
|
||||
isSelected = true;
|
||||
}
|
||||
rv = mMathMLChar.Display(aBuilder, this, aLists, 0, isSelected ? &selectedRect : nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user