Closed Bug 1068058 Opened 10 years ago Closed 10 years ago

Update Selection.containsNode according to the spec

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

Specifically, this makes the first argument non-nullable.
Assignee: nobody → ehsan.akhgari
Attachment #8490107 - Flags: review?(bugs)
Comment on attachment 8490107 [details] [diff] [review]
Update Selection.containsNode according to the spec

>+Selection::ContainsNode(nsINode& aNode, bool aAllowPartial, ErrorResult& aRv)
> {
>   nsresult rv;
>-  if (mRanges.Length() == 0 || !aNode)
>+  if (mRanges.Length() == 0)
>     return false;
Since you're fixing coding style elsewhere, why not here too
Attachment #8490107 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/ae2e4ca015fd
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: