Closed
Bug 166922
Opened 24 years ago
Closed 24 years ago
Can't Delete Rows of selected cells
Categories
(SeaMonkey :: Composer, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.2beta
People
(Reporter: rebron, Assigned: cmanske)
Details
Attachments
(1 file)
|
32.13 KB,
patch
|
akkzilla
:
review+
hewitt
:
superreview+
|
Details | Diff | Splinter Review |
Feature regression. Works okay with Netscape 7.0, Mozilla 1.0.
To replicate, create page with a table that has many rows and columns say 6x6.
Select two or three rows by highlighting.
Attempt to delete the rows.
Notice that the rows don't get deleted. You need to delete rows one row at a time.
Using: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020904
| Assignee | ||
Comment 2•24 years ago
|
||
This was busted during nsIEditorShell to nsITableEditor conversion in editor.js
Severity: normal → major
Status: NEW → ASSIGNED
Keywords: nsbeta1
Target Milestone: --- → mozilla1.2beta
| Assignee | ||
Comment 3•24 years ago
|
||
The root of this bug is this line in editor.js:
cell = gEditor.getNextSelectedCell();
This happened during conversion from nsIEditorShell methods to nsITableEditor.
The methods in nsIEditorShell had expected code patterns: e.g., a method
getNextSelectedCell() *should* be expected to return the next cell! But the
nsITableEditor methods required JS "out" param objects the way they were
written.
So I did a review of all the nsITableEditor methods and decided to clean them
all up:
I changed getSelectedOrParentTableElement, getFirstSelectedCell,
getFirstSelectedCellInTable, and getNextSelectedCell to return the element
instead of requiring "out" params. This necessitated a change in the order
of params in nsITableEditor.idl related files since the primary return
param must be the last one in the C++ methods. All other changes were the
result of these changes in the order params. Luckily, that kind of change is
easy to make since it won't compile or link if all uses of these methods aren't
fixed! There's also some cleanup in the comments in nsITableEditor.idl.
| Assignee | ||
Updated•24 years ago
|
| Assignee | ||
Comment 4•24 years ago
|
||
I changed all of these comment strings:
"in C++ returns:" to "Returns (in C++)"
per reviewer comments
Comment 5•24 years ago
|
||
Comment on attachment 98489 [details] [diff] [review]
patch v1
r=akkana
Attachment #98489 -
Flags: review+
| Assignee | ||
Updated•24 years ago
|
Whiteboard: [FIX IN HAND] need r=,sr= → [FIX IN HAND] need sr=
Comment 6•24 years ago
|
||
Comment on attachment 98489 [details] [diff] [review]
patch v1
sr=hewitt
Attachment #98489 -
Flags: superreview+
| Assignee | ||
Updated•24 years ago
|
Whiteboard: [FIX IN HAND] need sr= → [FIX IN HAND]
| Assignee | ||
Comment 7•24 years ago
|
||
checked into 1.2beta trunk
verified in 9/17 trunk...
Rafael, this should be fixed for you now...let us know if you find otherwise.
Status: RESOLVED → VERIFIED
| Reporter | ||
Comment 9•24 years ago
|
||
Works beautifully. Thanks for the quick turnaround I do use this feature quite
a bit.
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•