Closed
Bug 564001
Opened 15 years ago
Closed 15 years ago
Should use the first image map in tree order
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla2.0b4
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
()
Details
(Keywords: html5)
Attachments
(1 file, 3 obsolete files)
|
12.20 KB,
patch
|
Details | Diff | Splinter Review |
Currently we use the map that was first added to the document.
| Assignee | ||
Comment 1•15 years ago
|
||
Applies on top of bug 109445.
Attachment #444248 -
Flags: review?(bzbarsky)
Comment 2•15 years ago
|
||
Comment on attachment 444248 [details] [diff] [review]
Fix v1
This leaks the nsContentList if nothing else.
Apart from that, how often do we call this code (looks like at least every paint of an image). How long does that DOM walk take? Is it really ok to no longer cache things here?
Attachment #444248 -
Flags: review?(bzbarsky) → review-
| Assignee | ||
Comment 3•15 years ago
|
||
This should at least fix the leak. I'm afraid I don't know the answers to your other questions, though.
Attachment #444248 -
Attachment is obsolete: true
Attachment #452547 -
Flags: review?(bzbarsky)
Comment 4•15 years ago
|
||
How about figuring them out? For the first question, measure or breakpoint in the function and see what the stacks look like. For the second one, measure. For the third one, the answer depends on the other two, obviously.
Comment 5•15 years ago
|
||
Comment on attachment 452547 [details] [diff] [review]
Patch v2
r- pending answers to my questions or some other convincing that the behavior change is ok.
Attachment #452547 -
Flags: review?(bzbarsky) → review-
| Assignee | ||
Comment 6•15 years ago
|
||
So I never realized that nsContentList is actually live... I guess this should be better.
Attachment #452547 -
Attachment is obsolete: true
Attachment #458409 -
Flags: review?(bzbarsky)
Comment 7•15 years ago
|
||
Comment on attachment 458409 [details] [diff] [review]
Patch v3
This looks fine, though a followup to maybe not use the nsIDOMHTML* interface to get the name and id might be good.
Attachment #458409 -
Flags: review?(bzbarsky) → review+
| Assignee | ||
Updated•15 years ago
|
Attachment #458409 -
Flags: approval2.0?
Got some rejects trying to apply this for landing. Also, use 'checkin-needed' to request landing.
| Assignee | ||
Comment 10•15 years ago
|
||
I'll refresh when I get approval to get this landed.
Updated•15 years ago
|
Attachment #458409 -
Flags: approval2.0? → approval2.0+
| Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Whiteboard: [needs landing]
Comment 12•15 years ago
|
||
Comment 13•15 years ago
|
||
And http://hg.mozilla.org/mozilla-central/rev/cc10699c5f6a to add the missing test file and fix tree red.
You need to log in
before you can comment on or make changes to this bug.
Description
•