Closed Bug 327906 Opened 20 years ago Closed 10 years ago

Use generic element flags for controls

Categories

(Core Graveyard :: XForms, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: allan, Unassigned)

References

()

Details

We are using a lot of space for our controls. We should just have one generic "mElementStates/Flags/whatever" var. PRBools and BindAttrCount (32 bit, using max. 3 bits...): http://lxr.mozilla.org/seamonkey/source/extensions/xforms/nsXFormsControlStub.h#163 repeat state could probably be incorporated too: http://lxr.mozilla.org/seamonkey/source/extensions/xforms/nsXFormsDelegateStub.h#112 And probably more. Should be fairly easy to do.
Could include putting mControlType into "#ifdef DEBUG_smaug ... #endif" too, there's not really any reason for it to be there if not debugging.
(In reply to comment #1) > Could include putting mControlType into "#ifdef DEBUG_smaug ... #endif" too, > there's not really any reason for it to be there if not debugging. > fine with me, but surround it by a generic ifdef DEBUG then, please. I tend to look at this data quite often when trying to track down bugs that wind in and out of XBL.
Severity: normal → enhancement
Assignee: aaronr → xforms
RIP xforms
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.