Closed
Bug 367781
Opened 19 years ago
Closed 19 years ago
adoptNode should update mMutationBits of the possible |window| object.
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
Details
Attachments
(4 files, 1 obsolete file)
|
1.00 KB,
application/xhtml+xml
|
Details | |
|
10.84 KB,
patch
|
peterv
:
review+
peterv
:
superreview+
|
Details | Diff | Splinter Review |
|
9.91 KB,
patch
|
Details | Diff | Splinter Review | |
|
4.57 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
adoptNode should update mMutationBits of the possible |window| object,
so that mutation event listeners work also in the new document.
I'll confirm this once I've written a testcase.
| Assignee | ||
Comment 1•19 years ago
|
||
Assignee: general → Olli.Pettay
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
| Assignee | ||
Updated•19 years ago
|
Attachment #252388 -
Attachment mime type: text/x-patch → text/html
| Assignee | ||
Updated•19 years ago
|
Attachment #252388 -
Attachment mime type: text/html → application/xhtml+xml
| Assignee | ||
Comment 2•19 years ago
|
||
Comment on attachment 252388 [details] [diff] [review]
possible patch
oops, wrong file :)
Attachment #252388 -
Attachment is patch: true
Attachment #252388 -
Attachment mime type: application/xhtml+xml → text/plain
| Assignee | ||
Updated•19 years ago
|
Attachment #252388 -
Attachment description: testcase → possible patch
| Assignee | ||
Comment 3•19 years ago
|
||
| Assignee | ||
Comment 4•19 years ago
|
||
Peterv, any opinion whether we should set the exact mutation bits to
window, or is it enough to set all.
Mutation bits are anyway just a way to optimize mutation event
dispatching.
| Assignee | ||
Updated•19 years ago
|
Attachment #252388 -
Flags: review?(peterv)
| Assignee | ||
Comment 5•19 years ago
|
||
Attachment #252388 -
Attachment is obsolete: true
Attachment #252896 -
Flags: review?(peterv)
Attachment #252388 -
Flags: review?(peterv)
Comment 6•19 years ago
|
||
Comment on attachment 252896 [details] [diff] [review]
Copy only necessary mutation bits
>Index: content/events/src/nsEventListenerManager.cpp
>===================================================================
>+PRUint32
>+nsEventListenerManager::MutationListenerBits()
>+ PRInt32 count = mListeners.Count();
>+ for (PRInt32 i = 0; i < count; ++i) {
Declare the i next to count.
>Index: content/events/src/nsEventListenerManager.h
>===================================================================
>+ virtual PRUint32 MutationListenerBits();
Does this need to be virtual?
>+ static PRUint32 MutationBitForEventType(PRUint32 aEventType);
I'd just make this a static function in the cpp file.
Attachment #252896 -
Flags: superreview+
Attachment #252896 -
Flags: review?(peterv)
Attachment #252896 -
Flags: review+
| Assignee | ||
Comment 7•19 years ago
|
||
> >Index: content/events/src/nsEventListenerManager.h
> >===================================================================
>
> >+ virtual PRUint32 MutationListenerBits();
>
> Does this need to be virtual?
yes, because it is the implementation for
nsIEventListenerManager::MutationListenerBits().
So it is anyway virtual..,
Comment 8•19 years ago
|
||
Right, I should get some sleep ;-).
| Assignee | ||
Comment 9•19 years ago
|
||
| Assignee | ||
Updated•19 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Flags: in-testsuite?
| Assignee | ||
Comment 10•19 years ago
|
||
| Assignee | ||
Comment 11•19 years ago
|
||
Comment on attachment 253610 [details] [diff] [review]
mochitest
And will add that missing newline to the end of Makefile.in
Attachment #253610 -
Flags: review?(peterv)
Updated•19 years ago
|
Attachment #253610 -
Flags: review?(peterv) → review+
| Assignee | ||
Updated•19 years ago
|
Flags: in-testsuite? → in-testsuite+
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•