зеркало из https://github.com/mozilla/gecko-dev.git
Patch for bug 35296:SetCaretEnabled() takes too long
r/sr=sfraser
This commit is contained in:
Родитель
9222756901
Коммит
c5e44e7d6e
|
@ -446,9 +446,9 @@ NS_IMETHODIMP nsCaret::DrawAtPosition(nsIDOMNode* aNode, PRInt32 aOffset)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsCaret::SetOptimizeDrawCaret(PRBool aOptimzeDrawCaret)
|
||||
NS_IMETHODIMP nsCaret::SetOptimizeDrawCaret(PRBool aOptimizeDrawCaret)
|
||||
{
|
||||
mOptimizeDrawCaret = aOptimzeDrawCaret;
|
||||
mOptimizeDrawCaret = aOptimizeDrawCaret;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ class nsCaret : public nsICaret,
|
|||
NS_IMETHOD SetVisibilityDuringSelection(PRBool aVisibility);
|
||||
NS_IMETHOD DrawAtPosition(nsIDOMNode* aNode, PRInt32 aOffset);
|
||||
|
||||
NS_IMETHOD SetOptimizeDrawCaret(PRBool aOptimzeDrawCaret);
|
||||
NS_IMETHOD SetOptimizeDrawCaret(PRBool aOptimizeDrawCaret);
|
||||
|
||||
//nsISelectionListener interface
|
||||
NS_IMETHOD NotifySelectionChanged(nsIDOMDocument *aDoc, nsISelection *aSel, short aReason);
|
||||
|
|
|
@ -128,7 +128,7 @@ public:
|
|||
/** SetOptimizeDrawCaret
|
||||
* To start or stop process of optimizing draw caret
|
||||
*/
|
||||
NS_IMETHOD SetOptimizeDrawCaret(PRBool aOptimzeDrawCaret) = 0;
|
||||
NS_IMETHOD SetOptimizeDrawCaret(PRBool aOptimizeDrawCaret) = 0;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ public:
|
|||
/** SetOptimizeDrawCaret
|
||||
* To start or stop process of optimizing draw caret
|
||||
*/
|
||||
NS_IMETHOD SetOptimizeDrawCaret(PRBool aOptimzeDrawCaret) = 0;
|
||||
NS_IMETHOD SetOptimizeDrawCaret(PRBool aOptimizeDrawCaret) = 0;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -446,9 +446,9 @@ NS_IMETHODIMP nsCaret::DrawAtPosition(nsIDOMNode* aNode, PRInt32 aOffset)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsCaret::SetOptimizeDrawCaret(PRBool aOptimzeDrawCaret)
|
||||
NS_IMETHODIMP nsCaret::SetOptimizeDrawCaret(PRBool aOptimizeDrawCaret)
|
||||
{
|
||||
mOptimizeDrawCaret = aOptimzeDrawCaret;
|
||||
mOptimizeDrawCaret = aOptimizeDrawCaret;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ class nsCaret : public nsICaret,
|
|||
NS_IMETHOD SetVisibilityDuringSelection(PRBool aVisibility);
|
||||
NS_IMETHOD DrawAtPosition(nsIDOMNode* aNode, PRInt32 aOffset);
|
||||
|
||||
NS_IMETHOD SetOptimizeDrawCaret(PRBool aOptimzeDrawCaret);
|
||||
NS_IMETHOD SetOptimizeDrawCaret(PRBool aOptimizeDrawCaret);
|
||||
|
||||
//nsISelectionListener interface
|
||||
NS_IMETHOD NotifySelectionChanged(nsIDOMDocument *aDoc, nsISelection *aSel, short aReason);
|
||||
|
|
Загрузка…
Ссылка в новой задаче