mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-19 07:26:26 +00:00
Bug 1421561 - Use IgnoredErrorResult in TextEditRules::WillInsertText(); r=masayuki
MozReview-Commit-ID: 5LV5lVEWKO1 --HG-- extra : rebase_source : 75a434db4d01ce3e82f27ab73017ccc0653af08f
This commit is contained in:
parent
e92f83050d
commit
d9305463a9
@ -785,7 +785,7 @@ TextEditRules::WillInsertText(EditAction aAction,
|
||||
MOZ_ASSERT(!pointAfterStringInserted.GetChildAtOffset(),
|
||||
"After inserting text into a text node, pointAfterStringInserted."
|
||||
"GetChildAtOffset() should be nullptr");
|
||||
ErrorResult error;
|
||||
IgnoredErrorResult error;
|
||||
aSelection->Collapse(pointAfterStringInserted, error);
|
||||
if (error.Failed()) {
|
||||
NS_WARNING("Failed to collapse selection after inserting string");
|
||||
|
Loading…
x
Reference in New Issue
Block a user