зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1649121: part 18) Declare `CreateDOMFragmentFromPaste` `const`. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D82198
This commit is contained in:
Родитель
275edede6b
Коммит
1684d9040a
|
@ -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,
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче