#631: M1607762 M1654620

This commit is contained in:
Cameron Kaiser 2020-11-12 19:48:29 -08:00
parent bc7189521a
commit 7a7bba46e7
2 changed files with 3 additions and 1 deletions

View File

@ -589,6 +589,8 @@ nsTreeBodyFrame::GetSelectionRegion(nsIScriptableRegion **aRegion)
{
*aRegion = nullptr;
if (!mView) return NS_OK;
nsCOMPtr<nsITreeSelection> selection;
mView->GetSelection(getter_AddRefs(selection));
NS_ENSURE_TRUE(selection, NS_OK);

View File

@ -52,7 +52,7 @@ public:
nsrefcnt AddRef();
nsrefcnt Release();
private:
nsAutoRefCnt mRefCnt;
mozilla::ThreadSafeAutoRefCnt mRefCnt;
};
#endif // nsHtml5OwningUTF16Buffer_h