Closed Bug 564574 Opened 15 years ago Closed 15 years ago

[FIX]Pass the first appended node to ContentAppended

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Callees can get it now using the index, but we'd like to remove the index. This bug is just about passing the node; updating callees to not use the index should happen in separate bugs.
Attached patch Like soSplinter Review
Attachment #444232 - Flags: superreview?(jonas)
Attachment #444232 - Flags: review?(jst)
Comment on attachment 444232 [details] [diff] [review] Like so - In nsXULDocument::ContentAppended(): // Update our element map PRUint32 count = aContainer->GetChildCount(); Looks like count is unused after this change. - In layout/svg/base/src/nsSVGEffects.cpp: nsSVGRenderingObserver::ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, - PRInt32 aNewIndexInContainer) + nsIContent *aFirstNewContent, Remove the tabs that crept in here somehow... - In parser/html/nsHtml5PendingNotification.h: inline void Fire() { - nsNodeUtils::ContentAppended(mParent, mChildCount); + nsNodeUtils::ContentAppended(mParent, mParent->GetChildAt(mChildCount), + mChildCount); More tabs... r=jst with those minor issues fixed.
Attachment #444232 - Flags: review?(jst) → review+
Comment on attachment 444232 [details] [diff] [review] Like so There are tabs in the new code in sSVGRenderingObserver::ContentAppended sr=me with that fixed
Attachment #444232 - Flags: superreview?(jonas) → superreview+
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Depends on: 564974
No longer depends on: 564974
Target Milestone: --- → mozilla1.9.3a5
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: