Bug 1649121: part 15) Declare IsVisibleBRElement const. r=masayuki

Differential Revision: https://phabricator.services.mozilla.com/D82009
This commit is contained in:
Mirko Brodesser 2020-07-03 09:25:25 +00:00
parent 17833bb634
commit f5d347f5a7
2 changed files with 2 additions and 2 deletions

View File

@ -877,7 +877,7 @@ void HTMLEditor::IsPrevCharInNodeWhiteSpace(nsIContent* aContent,
}
}
bool HTMLEditor::IsVisibleBRElement(const nsINode* aNode) {
bool HTMLEditor::IsVisibleBRElement(const nsINode* aNode) const {
MOZ_ASSERT(aNode);
if (!aNode->IsHTMLElement(nsGkAtoms::br)) {
return false;

View File

@ -928,7 +928,7 @@ class HTMLEditor final : public TextEditor,
/**
* Small utility routine to test if a break node is visible to user.
*/
bool IsVisibleBRElement(const nsINode* aNode);
bool IsVisibleBRElement(const nsINode* aNode) const;
/**
* Helper routines for font size changing.