summaryrefslogtreecommitdiff
path: root/editor/libeditor/TextEditor.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 05:47:12 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 05:47:12 -0400
commit118d664d87760b11bffbac5731dccf6b1c8dc7ea (patch)
tree61fd4472558f959f7695b3940e7ed5ea7628e5ed /editor/libeditor/TextEditor.cpp
parent06843a642783b444511f0afbd731362157f8da3a (diff)
downloadaura-central-118d664d87760b11bffbac5731dccf6b1c8dc7ea.tar.gz
Bug 1372829 - Part 2: mozilla::EditorBase should cache raw pointer of nsISelectionController and nsIDocument with nsWeakPtr
Tag mcp-graveyard/UXP%1375
Diffstat (limited to 'editor/libeditor/TextEditor.cpp')
-rw-r--r--editor/libeditor/TextEditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/libeditor/TextEditor.cpp b/editor/libeditor/TextEditor.cpp
index 35ea5da83..9d07c198b 100644
--- a/editor/libeditor/TextEditor.cpp
+++ b/editor/libeditor/TextEditor.cpp
@@ -1237,7 +1237,7 @@ TextEditor::GetAndInitDocEncoder(const nsAString& aFormatType,
nsCOMPtr<nsIDocumentEncoder> docEncoder (do_CreateInstance(formatType.get(), &rv));
NS_ENSURE_SUCCESS(rv, rv);
- nsCOMPtr<nsIDOMDocument> domDoc = do_QueryReferent(mDocWeak);
+ nsCOMPtr<nsIDOMDocument> domDoc = GetDOMDocument();
NS_ASSERTION(domDoc, "Need a document");
rv = docEncoder->Init(domDoc, aFormatType, aFlags);