Closed Bug 1392867 Opened 7 years ago Closed 7 years ago

Switch a GetChildAt() call in HTMLEditRules::TryToJoinBlocks() to use something else

Categories

(Core :: DOM: Editor, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(2 files)

No description provided.
The one in the line below requires a lot more work... I'll deal with that one later.
Comment on attachment 8900064 [details] [diff] [review] Part 1: Add an override of EditorUtils::IsDescendantOf() which returns an nsIContent* out argument for the child node found instead of its index in the parent > Bug 1392867 - Part 1: Add an override of EditorUtils::IsDescendantOf() which an overload?
Attachment #8900064 - Flags: review?(masayuki) → review+
Comment on attachment 8900065 [details] [diff] [review] Part 2: Avoid calling GetChildAt() in HTMLEditRules::TryToJoinBlocks() Really nice!
Attachment #8900065 - Flags: review?(masayuki) → review+
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/30fd4ff28505 Part 1: Add an overload of EditorUtils::IsDescendantOf() which returns an nsIContent* out argument for the child node found instead of its index in the parent; r=masayuki https://hg.mozilla.org/integration/mozilla-inbound/rev/a93b3e95a267 Part 2: Avoid calling GetChildAt() in HTMLEditRules::TryToJoinBlocks(); r=masayuki
An nsIContent** outparam that doesn't addref seems like it should be very clearly documented.
Assignee: nobody → ehsan
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b4f59a5d13d0 follow-up: Document that the aChild argument won't get AddRef'ed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: