Closed
Bug 1407352
Opened 7 years ago
Closed 7 years ago
Avoid calling GetChildAt() in DeleteRangeTransaction::CreateTxnsToDeleteBetween()
Categories
(Core :: DOM: Editor, enhancement)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
3.68 KB,
patch
|
masayuki
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8917083 -
Flags: review?(masayuki)
Assignee | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment on attachment 8917083 [details] [diff] [review]
Avoid calling GetChildAt() in DeleteRangeTransaction::CreateTxnsToDeleteBetween()
>@@ -148,17 +151,17 @@ DeleteRangeTransaction::CreateTxnsToDeleteBetween(nsINode* aNode,
> // So, the transaction shouldn't be recorded.
> if (NS_WARN_IF(!deleteTextTransaction->CanDoIt())) {
> return NS_ERROR_FAILURE;
> }
> AppendChild(deleteTextTransaction);
> return NS_OK;
> }
>
>- nsCOMPtr<nsIContent> child = aNode->GetChildAt(aStartOffset);
>+ nsCOMPtr<nsIContent> child = aChildAtStartOffset;
|child| is used only for initializing DeleteNodeTransaction() and calling GetNextSibling(). So, this can be nsIContent*.
Attachment #8917083 -
Flags: review?(masayuki) → review+
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ccda121ca4b1
Avoid calling GetChildAt() in DeleteRangeTransaction::CreateTxnsToDeleteBetween(); r=masayuki
Comment 5•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•