Closed Bug 643000 Opened 13 years ago Closed 12 years ago

convert nsStateMapEntry from a class to a struct

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: tbsaunde, Assigned: tbsaunde)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:2.0b13pre) Gecko/20110318 Firefox/4.0b13pre
Build Identifier: 

It doesn't make much sense for nsStateMapEntry to be a class, it only has one method which is static, and doesn't really  feel like it belongs there.  The only place we create state map entry objects is in a static array.  It would be a lot nicer to conver nsStateMapEntry to a struct and then statically initialize the structs than the current use of a few similar constructors that are hard to distinguish, but fairly different in effect.

Reproducible: Always
Assignee: nobody → trev.saunders
Attachment #520324 - Flags: review?(surkov.alexander)
Comment on attachment 520324 [details] [diff] [review]
(wip) convert nsStateMapEntry from a class to a struct

I'm still not sure it makes things clearer. Frankly I don't have suggestions to make it in a way I like.
Attachment #520324 - Flags: feedback?
Guys, you're feedback is appreciated.
Comment on attachment 520324 [details] [diff] [review]
(wip) convert nsStateMapEntry from a class to a struct

cancelling review until feedback from other team members
Attachment #520324 - Flags: review?(surkov.alexander)
wontfix since we take different approach in bug 741398
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Attachment #520324 - Flags: feedback?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: