Bug 1640276 - Part 5: Mark nsINode as const in GetNext/PreviousGetNextHTMLElementOrTextInternal() r=masayuki

Differential Revision: https://phabricator.services.mozilla.com/D76567
This commit is contained in:
Kagami Sascha Rosylight 2020-05-23 12:39:36 +00:00
Родитель 6af0a00410
Коммит 6cafaa3128
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -4965,7 +4965,7 @@ nsIContent* HTMLEditor::GetNextHTMLSibling(nsINode* aNode,
}
nsIContent* HTMLEditor::GetPreviousHTMLElementOrTextInternal(
nsINode& aNode, bool aNoBlockCrossing) const {
const nsINode& aNode, bool aNoBlockCrossing) const {
if (NS_WARN_IF(!GetActiveEditingHost())) {
return nullptr;
}
@ -5003,7 +5003,7 @@ nsIContent* HTMLEditor::GetPreviousEditableHTMLNodeInternal(
}
nsIContent* HTMLEditor::GetNextHTMLElementOrTextInternal(
nsINode& aNode, bool aNoBlockCrossing) const {
const nsINode& aNode, bool aNoBlockCrossing) const {
if (NS_WARN_IF(!GetActiveEditingHost())) {
return nullptr;
}

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

@ -1029,7 +1029,7 @@ class HTMLEditor final : public TextEditor,
* GetPreviousHTMLElementOrTextInternal() methods are common implementation
* of above methods. Please don't use this method directly.
*/
nsIContent* GetPreviousHTMLElementOrTextInternal(nsINode& aNode,
nsIContent* GetPreviousHTMLElementOrTextInternal(const nsINode& aNode,
bool aNoBlockCrossing) const;
template <typename PT, typename CT>
nsIContent* GetPreviousHTMLElementOrTextInternal(
@ -1098,7 +1098,7 @@ class HTMLEditor final : public TextEditor,
* GetNextHTMLNodeInternal() methods are common implementation
* of above methods. Please don't use this method directly.
*/
nsIContent* GetNextHTMLElementOrTextInternal(nsINode& aNode,
nsIContent* GetNextHTMLElementOrTextInternal(const nsINode& aNode,
bool aNoBlockCrossing) const;
template <typename PT, typename CT>
nsIContent* GetNextHTMLElementOrTextInternal(