Closed
Bug 278369
Opened 20 years ago
Closed 20 years ago
nsIXFormsControl should use COMArray
Categories
(Core Graveyard :: XForms, defect)
Core Graveyard
XForms
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: allan, Assigned: allan)
References
()
Details
Attachments
(1 file, 1 obsolete file)
|
44.76 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Quoting bryner, on bug 265467: >--- xforms.newbranch/nsIXFormsControl.idl 2004-11-04 22:12:22.000000000 >+0100 >+++ xforms.mdg-branch/nsIXFormsControl.idl 2005-01-10 16:56:24.000000000 >+0100 >@@ -33,20 +33,49 @@ >... >+ /** >+ * The instance nodes that the control depend on. These MUST be sorted, >+ * pointer-order, ascending. >+ */ >+ readonly attribute nsIArray dependencies; >Would be nice if this could be a nsCOMArray since this method doesn't need to >be scriptable. It should be possible to declare it as such in IDL using >[native, ref] or something like that... there should be some examples in the >tree.
| Assignee | ||
Comment 1•20 years ago
|
||
* Uses COMArray as bryner suggested * Kills nsXFormsMDGSet entirely, and uses nsCOMArray<nsIDOMNode> everywhere. I'm not too sure about the IDL-business. It compiles and "works for me", but is it the correct way to do it?
Attachment #175109 -
Flags: review?(smaug)
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Comment 2•20 years ago
|
||
Comment on attachment 175109 [details] [diff] [review] Patch v1 This breaks http://www.mozilla.org/projects/xforms/sample1.xhtml I see the following assertions (in an endless oop?): ###!!! ASSERTION: index out of range: '0 <= aIndex && aIndex < Count()', file nsVoidArray.h, line 71 Break: at file nsVoidArray.h, line 71
Attachment #175109 -
Flags: review?(smaug) → review-
Comment 3•20 years ago
|
||
loop
| Assignee | ||
Comment 4•20 years ago
|
||
(In reply to comment #3) > loop If you hadn't written that, I would never have understood your comment. Never. I mean it! Never! :)
| Assignee | ||
Comment 5•20 years ago
|
||
(In reply to comment #2) > (From update of attachment 175109 [details] [diff] [review] [edit]) > This breaks http://www.mozilla.org/projects/xforms/sample1.xhtml > > I see the following assertions (in an endless oop?): > ###!!! ASSERTION: index out of range: '0 <= aIndex && aIndex < Count()', file > nsVoidArray.h, line 71 > Break: at file nsVoidArray.h, line 71 Argh. I remember looking through the patch before uploading it, and thinking something in the lines of "Hey stupid, that loop can be made more optimal", and then "optimizing" it. *doh*
| Assignee | ||
Comment 6•20 years ago
|
||
*ahem*. Let's try again.
Attachment #175109 -
Attachment is obsolete: true
Attachment #175275 -
Flags: review?(smaug)
Comment 7•20 years ago
|
||
Comment on attachment 175275 [details] [diff] [review] Patch v2 Now this looks ok to me, and it even seems to work ;)
Attachment #175275 -
Flags: review?(smaug) → review+
| Assignee | ||
Comment 8•20 years ago
|
||
Doron, will you do the 2nd review?
Comment 9•20 years ago
|
||
r=me
| Assignee | ||
Comment 10•20 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•