mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1383079 - Don't AddRef() the editor root node in TextEditRules::WillOutputText(); r=masayuki
This commit is contained in:
parent
e638bda44d
commit
2ee7157f0e
@ -1258,7 +1258,7 @@ TextEditRules::WillOutputText(Selection* aSelection,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
RefPtr<Element> root = mTextEditor->GetRoot();
|
||||
Element* root = mTextEditor->GetRoot();
|
||||
if (!root) { // Don't warn it, this is possible, e.g., 997805.html
|
||||
aOutString->Truncate();
|
||||
*aHandled = true;
|
||||
|
Loading…
Reference in New Issue
Block a user