Closed
Bug 234615
Opened 21 years ago
Closed 21 years ago
Minor cleanup in imagemap code
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: sicking, Assigned: sicking)
Details
Attachments
(1 file)
20.32 KB,
patch
|
bryner
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
While looking into consumers of nsIHTMLContent::GetBaseTarget i found a gem in
the imagemap code.
nsImageMap::IsInside has a signature that returns the alt-attribute, target and
href of the found <area>, however all callers of this function ignore these
arguments. Incidently, the code in nsImageMap::IsInside that calculates the
target is the only caller of nsIHTMLContent::GetBaseTarget.
So i killed this code along with nsIHTMLContent::GetBaseTarget and with it a
member in the Area-class that ended up being unused.
I also fixed GetTarget in <area> and <a> to properly use the default target when
the attribute isn't specified.
I also noticed that the support for the nohref attribute is broken, that's filed
as bug 234614.
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #141592 -
Flags: superreview?(jst)
Attachment #141592 -
Flags: review?(bryner)
Comment 2•21 years ago
|
||
Comment on attachment 141592 [details] [diff] [review]
patch to fix
sr=jst
Attachment #141592 -
Flags: superreview?(jst) → superreview+
Updated•21 years ago
|
Attachment #141592 -
Flags: review?(bryner) → review+
Assignee | ||
Comment 3•21 years ago
|
||
checked in. Thanks for reviews.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•