Closed
Bug 489581
Opened 15 years ago
Closed 15 years ago
Reduce Addref/Release when calling event handlers
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
Details
Attachments
(1 file)
17.45 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
Depending on the case this speeds up event handling up to 6-7%. Usually a lot less. I need to run tests...
Assignee | ||
Comment 1•15 years ago
|
||
Btw, I found this while debugging nsCxPusher::Push/JSContextStack::Push
Assignee: nobody → Olli.Pettay
Assignee | ||
Updated•15 years ago
|
Attachment #374070 -
Flags: superreview?(jst)
Attachment #374070 -
Flags: review?(jst)
Assignee | ||
Comment 2•15 years ago
|
||
Comment on attachment 374070 [details] [diff] [review] patch Passed the tests. So I'm swapping out-param and return value. Even though changes to nsContentUtils::GetContextForEventHandlers are simple, it needs to be reviewed carefully. NS_ENSURE_SUCCESS in nsXHREventTarget::AddEventListener isn't actually a must-have, but since I added the comment that caller must check the rv value...
Comment 3•15 years ago
|
||
Comment on attachment 374070 [details] [diff] [review] patch Looks good to me, and I did look through nsContentUtils::GetContextForEventHandlers() in detail as well.
Attachment #374070 -
Flags: superreview?(jst)
Attachment #374070 -
Flags: superreview+
Attachment #374070 -
Flags: review?(jst)
Attachment #374070 -
Flags: review+
Assignee | ||
Comment 4•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/24bb97995e9b
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•