зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6af0a00410
Коммит
6cafaa3128
|
@ -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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче