зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1640276 - Part 3: Mark nsINode as const in GetNext/PreviousNodeInternal() r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D76564
This commit is contained in:
Родитель
83c35c9040
Коммит
866889e825
|
@ -2793,7 +2793,7 @@ nsresult EditorBase::DeleteTextWithTransaction(Text& aTextNode,
|
|||
return rv;
|
||||
}
|
||||
|
||||
nsIContent* EditorBase::GetPreviousNodeInternal(nsINode& aNode,
|
||||
nsIContent* EditorBase::GetPreviousNodeInternal(const nsINode& aNode,
|
||||
bool aFindEditableNode,
|
||||
bool aFindAnyDataNode,
|
||||
bool aNoBlockCrossing) const {
|
||||
|
@ -2852,7 +2852,7 @@ nsIContent* EditorBase::GetPreviousNodeInternal(const EditorRawDOMPoint& aPoint,
|
|||
aFindAnyDataNode, aNoBlockCrossing);
|
||||
}
|
||||
|
||||
nsIContent* EditorBase::GetNextNodeInternal(nsINode& aNode,
|
||||
nsIContent* EditorBase::GetNextNodeInternal(const nsINode& aNode,
|
||||
bool aFindEditableNode,
|
||||
bool aFindAnyDataNode,
|
||||
bool aNoBlockCrossing) const {
|
||||
|
|
|
@ -2045,7 +2045,8 @@ class EditorBase : public nsIEditor,
|
|||
* aFindEditableNode is true. If there is no
|
||||
* previous node, returns nullptr.
|
||||
*/
|
||||
nsIContent* GetPreviousNodeInternal(nsINode& aNode, bool aFindEditableNode,
|
||||
nsIContent* GetPreviousNodeInternal(const nsINode& aNode,
|
||||
bool aFindEditableNode,
|
||||
bool aFindAnyDataNode,
|
||||
bool aNoBlockCrossing) const;
|
||||
|
||||
|
@ -2070,9 +2071,9 @@ class EditorBase : public nsIEditor,
|
|||
* aFindEditableNode is true. If there is no
|
||||
* next node, returns nullptr.
|
||||
*/
|
||||
nsIContent* GetNextNodeInternal(nsINode& aNode, bool aFindEditableNode,
|
||||
nsIContent* GetNextNodeInternal(const nsINode& aNode, bool aFindEditableNode,
|
||||
bool aFindAnyDataNode,
|
||||
bool bNoBlockCrossing) const;
|
||||
bool aNoBlockCrossing) const;
|
||||
|
||||
/**
|
||||
* And another version that takes a point in DOM tree rather than a node.
|
||||
|
|
Загрузка…
Ссылка в новой задаче