Closed Bug 346744 Opened 18 years ago Closed 18 years ago

Make nsIContent::AppendChildTo into an inline forward to nsIContent::InsertChildAt

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sicking, Assigned: sicking)

References

Details

Attachments

(1 file)

bz and I have talked about this a bit so I figured I should just go ahead and do it.

The one issue with this is that having AppendChildTo used to allow us to work properly with lazy templates in XUL. However that is currently broken anyway. I think the way to solve that is to make the XUL prototype wrapping code call some special function on nsXULElement so this patch should not make that harder.
Attached patch Patch to fixSplinter Review
Assignee: general → bugmail
Status: NEW → ASSIGNED
Attachment #231492 - Flags: superreview?(bzbarsky)
Attachment #231492 - Flags: review?(bzbarsky)
Comment on attachment 231492 [details] [diff] [review]
Patch to fix

>Index: content/xtf/src/nsXTFElementWrapper.cpp
>-  if (mNotificationMask & (nsIXTFElement::NOTIFY_WILL_APPEND_CHILD |
>-                           nsIXTFElement::NOTIFY_CHILD_APPENDED))

So we can nuke those two enum values from the IDL, right?

>-    GetXTFElement()->WillAppendChild(domKid);
...
>-    GetXTFElement()->ChildAppended(domKid);

And those methods?

File a followup bug on XTF on that?

r+sr=bzbarsky
Attachment #231492 - Flags: superreview?(bzbarsky)
Attachment #231492 - Flags: superreview+
Attachment #231492 - Flags: review?(bzbarsky)
Attachment #231492 - Flags: review+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Depends on: 378510
Depends on: 875328
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: