Closed
Bug 752203
Opened 13 years ago
Closed 13 years ago
Cleanup nsEditor::NodesSameType
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: Ms2ger, Assigned: Ms2ger)
Details
Attachments
(1 file, 2 obsolete files)
|
5.82 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #621284 -
Flags: review?(ehsan)
| Assignee | ||
Comment 1•13 years ago
|
||
Now it also builds.
Attachment #621284 -
Attachment is obsolete: true
Attachment #621284 -
Flags: review?(ehsan)
Attachment #621286 -
Flags: review?(ehsan)
Comment 2•13 years ago
|
||
Comment on attachment 621286 [details] [diff] [review]
Patch v1.1
Review of attachment 621286 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good overall, r- because of the comment below.
::: editor/libeditor/base/nsEditor.cpp
@@ +3844,5 @@
> +
> + nsCOMPtr<nsIContent> content1 = do_QueryInterface(aNode1);
> + nsCOMPtr<nsIContent> content2 = do_QueryInterface(aNode2);
> + if (!content1 || !content2) {
> + return !content1 == !content2;
Hmm, is why do we want to do this? This means that when content1 and content2 are both null, we'll consider them to be the same type. I don't see why that makes sense.
Attachment #621286 -
Flags: review?(ehsan) → review-
| Assignee | ||
Comment 3•13 years ago
|
||
Me neither, but I wanted to preserve behaviour (both GetTag's would return null in that case, so they would compare equal)
Comment 4•13 years ago
|
||
(In reply to Ms2ger from comment #3)
> Me neither, but I wanted to preserve behaviour (both GetTag's would return
> null in that case, so they would compare equal)
Hmm, then I think the existing behavior is badly broken, let's fix it. :-)
| Assignee | ||
Comment 5•13 years ago
|
||
wfm
| Assignee | ||
Comment 6•13 years ago
|
||
Attachment #621286 -
Attachment is obsolete: true
Attachment #623491 -
Flags: review?(ehsan)
Updated•13 years ago
|
Attachment #623491 -
Flags: review?(ehsan) → review+
| Assignee | ||
Comment 7•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in
before you can comment on or make changes to this bug.
Description
•