Closed
Bug 196818
Opened 22 years ago
Closed 21 years ago
Reduce memory footprint of XBL based selects
Categories
(Core :: XUL, defect, P3)
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: janv, Assigned: janv)
References
Details
(Keywords: memory-footprint)
If there is a need to reduce memory footprint of trees used in XBL forms, we can
move all dnd specific member variables to a lazily created object
Particularly I mean these variables:
PRPackedBool mDropAllowed
PRInt32 mDropRow
PRInt16 mDropOrient
PRInt16 mScrollLines
nsCOMPtr<nsIDragSession> mDragSession
nsCOMPtr<nsITimer> mTimer
nsValueArray mArray
There is also another possibility to separate code to a base class and then
create two objects which will inherit from the base class.
class nsBodyFrame
class nsTreeBodyFrame : public nsBodyFrame
class nsSelectBodyFrame : public nsBodyFrame
or something like that
| Assignee | ||
Updated•22 years ago
|
| Assignee | ||
Comment 1•21 years ago
|
||
Fixed along with bug 221619. There's now a new structure mSlots which is created
on demand when the dnd is used.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•