Bug 1649121: part 18) Declare CreateDOMFragmentFromPaste const. r=masayuki

Differential Revision: https://phabricator.services.mozilla.com/D82198
This commit is contained in:
Mirko Brodesser 2020-07-07 12:31:58 +00:00
parent 275edede6b
commit 1684d9040a
2 changed files with 2 additions and 2 deletions

View File

@ -4393,7 +4393,7 @@ class HTMLEditor final : public TextEditor,
const nsAString& aInputString, const nsAString& aContextStr,
const nsAString& aInfoStr, nsCOMPtr<nsINode>* aOutFragNode,
nsCOMPtr<nsINode>* aOutStartNode, nsCOMPtr<nsINode>* aOutEndNode,
int32_t* aOutStartOffset, int32_t* aOutEndOffset, bool aTrustedInput);
int32_t* aOutStartOffset, int32_t* aOutEndOffset, bool aTrustedInput) const;
static nsresult ParseFragment(const nsAString& aStr,
nsAtom* aContextLocalName, Document* aTargetDoc,
dom::DocumentFragment** aFragment,

View File

@ -2910,7 +2910,7 @@ nsresult HTMLEditor::CreateDOMFragmentFromPaste(
const nsAString& aInputString, const nsAString& aContextStr,
const nsAString& aInfoStr, nsCOMPtr<nsINode>* aOutFragNode,
nsCOMPtr<nsINode>* aOutStartNode, nsCOMPtr<nsINode>* aOutEndNode,
int32_t* aOutStartOffset, int32_t* aOutEndOffset, bool aTrustedInput) {
int32_t* aOutStartOffset, int32_t* aOutEndOffset, bool aTrustedInput) const {
if (NS_WARN_IF(!aOutFragNode) || NS_WARN_IF(!aOutStartNode) ||
NS_WARN_IF(!aOutEndNode) || NS_WARN_IF(!aOutStartOffset) ||
NS_WARN_IF(!aOutEndOffset)) {