Closed Bug 329125 Opened 19 years ago Closed 19 years ago

Remove nsMutationEvent::mTarget

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: smaug, Assigned: smaug)

References

Details

Attachments

(1 file, 1 obsolete file)

Bug 234455 moves target from nsDOMEvent to nsEvent and so nsMutationEvent::mTarget can be removed.
Attached patch proposed patch (obsolete) — Splinter Review
Target is set in nsEventDispatcher::Dispatch so no need to explicitly set it in Mutation event ctor and carry that extra member in nsMutationEvent. Btw, should sicking review these patches - he is anyway in WebAPI WG ;)
Assignee: events → smaug
Status: NEW → ASSIGNED
Attachment #214457 - Flags: superreview?(bzbarsky)
Attachment #214457 - Flags: review?(bzbarsky)
Comment on attachment 214457 [details] [diff] [review] proposed patch >Index: events/src/nsDOMMutationEvent.cpp >+ mEventIsInternal = aEvent ? PR_FALSE : PR_TRUE; How about: mEventIsInternal = (aEvent == nsnull); so there's no branch involved? r+sr=bzbarsky with that.
Attachment #214457 - Flags: superreview?(bzbarsky)
Attachment #214457 - Flags: superreview+
Attachment #214457 - Flags: review?(bzbarsky)
Attachment #214457 - Flags: review+
Attached patch checked inSplinter Review
Attachment #214457 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: