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:
Kagami Sascha Rosylight 2020-05-23 12:39:03 +00:00
Родитель 83c35c9040
Коммит 866889e825
2 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -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.