mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Make the caret use InvetRect for drawing.
This commit is contained in:
parent
3979d88e03
commit
953e2971e4
@ -560,17 +560,12 @@ void nsCaret::DrawCaretWithContext(nsIRenderingContext& inRendContext)
|
||||
frameRect.width = mCaretWidth;
|
||||
mCaretRect = frameRect;
|
||||
|
||||
if (mDrawn)
|
||||
{
|
||||
/*
|
||||
if (mReadOnly)
|
||||
inRendContext.SetColor(NS_RGB(85, 85, 85)); // we are drawing it; gray
|
||||
else
|
||||
inRendContext.SetColor(NS_RGB(0, 0, 0)); // we are drawing it; black
|
||||
}
|
||||
else
|
||||
inRendContext.SetColor(NS_RGB(255, 255, 255)); // we are erasing it; white
|
||||
|
||||
inRendContext.FillRect(mCaretRect);
|
||||
*/
|
||||
|
||||
inRendContext.InvertRect(mCaretRect);
|
||||
}
|
||||
|
||||
PRBool dummy;
|
||||
|
@ -560,17 +560,12 @@ void nsCaret::DrawCaretWithContext(nsIRenderingContext& inRendContext)
|
||||
frameRect.width = mCaretWidth;
|
||||
mCaretRect = frameRect;
|
||||
|
||||
if (mDrawn)
|
||||
{
|
||||
/*
|
||||
if (mReadOnly)
|
||||
inRendContext.SetColor(NS_RGB(85, 85, 85)); // we are drawing it; gray
|
||||
else
|
||||
inRendContext.SetColor(NS_RGB(0, 0, 0)); // we are drawing it; black
|
||||
}
|
||||
else
|
||||
inRendContext.SetColor(NS_RGB(255, 255, 255)); // we are erasing it; white
|
||||
|
||||
inRendContext.FillRect(mCaretRect);
|
||||
*/
|
||||
|
||||
inRendContext.InvertRect(mCaretRect);
|
||||
}
|
||||
|
||||
PRBool dummy;
|
||||
|
Loading…
x
Reference in New Issue
Block a user