Bug 311152. Make DOM selection changes repaint the caret in the new position. r=mrbkap,sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@182107 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
854fe5e09c
commit
5e553cf7c6
@ -232,6 +232,13 @@ NS_IMETHODIMP nsCaret::SetCaretDOMSelection(nsISelection *aDOMSel)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aDOMSel);
|
||||
mDomSelectionWeak = do_GetWeakReference(aDOMSel); // weak reference to pres shell
|
||||
if (mVisible)
|
||||
{
|
||||
// Stop the caret from blinking in its previous location.
|
||||
StopBlinking();
|
||||
// Start the caret blinking in the new location.
|
||||
StartBlinking();
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user