From 9ae430ad1acf5875c29ddd34259fd11f5b9d7c21 Mon Sep 17 00:00:00 2001 From: Mirko Brodesser Date: Tue, 30 Jun 2020 13:12:16 +0000 Subject: [PATCH] Bug 1649121: part 1) Add some documentation to `HTMLEditor::CreateDOMFragmentFromPaste`. r=masayuki Differential Revision: https://phabricator.services.mozilla.com/D81539 --- editor/libeditor/HTMLEditor.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/libeditor/HTMLEditor.h b/editor/libeditor/HTMLEditor.h index 0746216d88cf..8252e6626341 100644 --- a/editor/libeditor/HTMLEditor.h +++ b/editor/libeditor/HTMLEditor.h @@ -4383,6 +4383,11 @@ class HTMLEditor final : public TextEditor, char16_t** aCfcontext); nsresult StripFormattingNodes(nsIContent& aNode, bool aOnlyList = false); + + /** + * @param aContextStr as indicated by nsITransferable's kHTMLContext. + * @param aInfoStr as indicated by nsITransferable's kHTMLInfo. + */ nsresult CreateDOMFragmentFromPaste( const nsAString& aInputString, const nsAString& aContextStr, const nsAString& aInfoStr, nsCOMPtr* aOutFragNode,