Closed
Bug 49091
Opened 25 years ago
Closed 25 years ago
DOM API string change...
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: jst, Assigned: vidur)
Details
(Keywords: embed, Whiteboard: [nsbeta3+][HAVE FIX])
The string class used in the DOM interfaces should be changed from nsString
references to nsAReadableString for input parameters and nsAWritableString for
output parameters.
Why did we have to make these changes? Two reasons:
- Without the changes, the DOM APIs had fragile class references in them
(specifically nsString&). To get rid of this fragility, we could have replaced
these references with either interface references or raw (wide) character
pointers. We chose the former, since it didn't change the performance and memory
usage characteristics of these methods.
- By moving to the nsAReadableString and nsAWritableString interfaces, we allow
the use of other, possibly more efficient, string implementations for cases we
identify through performance analysis.
Reporter | ||
Comment 1•25 years ago
|
||
This is a now or never change that must happen for beta3, nominating.
Assignee | ||
Comment 3•25 years ago
|
||
Fix checked in on 7/23/2000. Kudos to jst@netscape.com and scc@mozilla.org for
the big effort that went into this.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Updated•24 years ago
|
Component: DOM Level 2 → DOM Other
Updated•24 years ago
|
Component: DOM Other → DOM Level 1
Updated•19 years ago
|
Flags: in-testsuite-
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
•