forked from mirrors/gecko-dev
Bug 1335997 - Part 2. Don't use virtual method for NotifyDocumentListeners and ScrollSelectionIntoView. r=masayuki
Both methods don't override by TextEditor and HTMLEditor. It is unnecessary to use as virtual method. MozReview-Commit-ID: 6FNO78RauML --HG-- extra : rebase_source : fb74a9b83a889ab2be04529527704f6de4b666dd
This commit is contained in:
parent
a6d68747ae
commit
4d5ef610ea
2 changed files with 5 additions and 5 deletions
|
|
@ -2295,7 +2295,7 @@ EditorBase::CloneAttributes(Element* aDest,
|
|||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsresult
|
||||
EditorBase::ScrollSelectionIntoView(bool aScrollToAnchor)
|
||||
{
|
||||
nsCOMPtr<nsISelectionController> selCon;
|
||||
|
|
@ -2577,7 +2577,7 @@ EditorBase::GetFirstEditableNode(nsINode* aRoot)
|
|||
return (node != aRoot) ? node : nullptr;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsresult
|
||||
EditorBase::NotifyDocumentListeners(
|
||||
TDocumentListenerNotification aNotificationType)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -402,8 +402,8 @@ protected:
|
|||
/**
|
||||
* Tell the doc state listeners that the doc state has changed.
|
||||
*/
|
||||
NS_IMETHOD NotifyDocumentListeners(
|
||||
TDocumentListenerNotification aNotificationType);
|
||||
nsresult NotifyDocumentListeners(
|
||||
TDocumentListenerNotification aNotificationType);
|
||||
|
||||
/**
|
||||
* Make the given selection span the entire document.
|
||||
|
|
@ -421,7 +421,7 @@ protected:
|
|||
* that the editor's sync/async settings for reflowing, painting, and
|
||||
* scrolling match.
|
||||
*/
|
||||
NS_IMETHOD ScrollSelectionIntoView(bool aScrollToAnchor);
|
||||
nsresult ScrollSelectionIntoView(bool aScrollToAnchor);
|
||||
|
||||
virtual bool IsBlockNode(nsINode* aNode);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue