From bc670252a15c2d29fa4dcf8e5966e544072b1297 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sat, 23 May 2020 12:40:08 +0000 Subject: [PATCH] Bug 1640276 - Part 7: Mark nsINode as const in IsVisibleBRElement() r=masayuki Differential Revision: https://phabricator.services.mozilla.com/D76570 --- editor/libeditor/HTMLEditor.cpp | 2 +- editor/libeditor/HTMLEditor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/libeditor/HTMLEditor.cpp b/editor/libeditor/HTMLEditor.cpp index 05140cc25f3f..4fcae5e36b3f 100644 --- a/editor/libeditor/HTMLEditor.cpp +++ b/editor/libeditor/HTMLEditor.cpp @@ -858,7 +858,7 @@ void HTMLEditor::IsPrevCharInNodeWhitespace(nsIContent* aContent, } } -bool HTMLEditor::IsVisibleBRElement(nsINode* aNode) { +bool HTMLEditor::IsVisibleBRElement(const nsINode* aNode) { MOZ_ASSERT(aNode); if (!aNode->IsHTMLElement(nsGkAtoms::br)) { return false; diff --git a/editor/libeditor/HTMLEditor.h b/editor/libeditor/HTMLEditor.h index 2f8629ffe706..c41b27001c87 100644 --- a/editor/libeditor/HTMLEditor.h +++ b/editor/libeditor/HTMLEditor.h @@ -928,7 +928,7 @@ class HTMLEditor final : public TextEditor, /** * Small utility routine to test if a break node is visible to user. */ - bool IsVisibleBRElement(nsINode* aNode); + bool IsVisibleBRElement(const nsINode* aNode); /** * Helper routines for font size changing.