mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
Bug 1372829 - Part 2: mozilla::EditorBase should cache raw pointer of nsISelectionController and nsIDocument with nsWeakPtr
Tag #1375
This commit is contained in:
parent
5d444ef68a
commit
4e14355697
8 changed files with 288 additions and 164 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue