Closed
Bug 586298
Opened 16 years ago
Closed 15 years ago
Move nsRadioVisitor and its children to nsRadioVisitor.{h,cpp} and remove radio visitor factories
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla5
People
(Reporter: mounir, Assigned: mounir)
References
Details
Attachments
(1 file)
|
22.25 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
For the moment, only nsIRadioVisitor is declared in public/. Implementations (nsRadioVisitor and all other radio visitors) are declared and defined in nsHTMLInputElement. However, there are some factories declared in public/ used in nsHTMLInputElement.
So, if these factories are only needed for nsHTMLInputElement (it looks like they are) we should not declare them in public/ and define them in nsHTMLInputElement. We should not have factories considering the nsIRadioVisitor implementations are not visible outside nsHTMLInputElement.cpp.
Even better IMO, we can create nsRadioVisitor.{h,cpp} in content/html/content/src.
| Assignee | ||
Updated•15 years ago
|
Summary: Move or remove radio visitors factories → Move nsRadioVisitor and its children to nsRadioVisitor.{h,cpp} and remove radio visitor factories
| Assignee | ||
Comment 1•15 years ago
|
||
Man, it feels so good to clean that up...
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs review]
Comment on attachment 518744 [details] [diff] [review]
Patch v1
Is there a reason these are refcounted? Couldn't we just change nsIRadioVisitor to RadioVisitor and new/delete them, or even allocate them on the stack?
r=me either way. But if you do do the above please do it as a second patch on top of this one.
Attachment #518744 -
Flags: review?(jonas) → review+
| Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> Comment on attachment 518744 [details] [diff] [review]
> Patch v1
>
> Is there a reason these are refcounted? Couldn't we just change nsIRadioVisitor
> to RadioVisitor and new/delete them, or even allocate them on the stack?
>
> r=me either way. But if you do do the above please do it as a second patch on
> top of this one.
FWIW, I'm thinking of removing ns{I,}RadioVisitor given two visitors might be removed by bug 641001 and the last one by bug 636774 (or one of its follow-up).
Anyway, to keep that in my radar, I've open bug 641349.
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs review] → [ready to land][waits for dependencies][passed try]
| Assignee | ||
Comment 4•15 years ago
|
||
Flags: in-testsuite-
Whiteboard: [ready to land][waits for dependencies][passed try]
Target Milestone: --- → mozilla2.2
| Assignee | ||
Updated•15 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Blocks: 659852
You need to log in
before you can comment on or make changes to this bug.
Description
•