Closed Bug 618662 Opened 14 years ago Closed 13 years ago

nsIDocument::GetWindow() should be a const method

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla5

People

(Reporter: msucan, Assigned: annasob)

Details

(Keywords: student-project)

Attachments

(1 file, 1 obsolete file)

The nsIDocument::GetWindow() method should be constant.

(followup from bug 606498 ... see comments #47, #51 and #54)
Anna's going to give this a shot.  Assigning by request.
Assignee: nobody → annaopensource
Status: NEW → ASSIGNED
Attached patch Patch fro bug 618662 (obsolete) — Splinter Review
I wasn't sure if I should make OuterWindowID() constant as per comment 47 of bug 606498
Attachment #508018 - Flags: review?(bzbarsky)
> I wasn't sure if I should make OuterWindowID() constant

Please do!
Comment on attachment 508018 [details] [diff] [review]
Patch fro bug 618662

> +  virtual nsPIDOMWindow *GetWindowInternal()  const = 0;

There's an extra space there before "const".   Other than that, looks good.
Attachment #508018 - Flags: review?(bzbarsky) → review+
I created a new patch. This one fixes the extra space and also makes OuterWindowID() constant
Attachment #508018 - Attachment is obsolete: true
Attachment #508880 - Flags: review?(bzbarsky)
Comment on attachment 508880 [details] [diff] [review]
Patch for bug 618662

Looks great; thanks!
Attachment #508880 - Flags: review?(bzbarsky) → review+
Should land this once the tree reopens; adding dependency so we don't lose it.
Depends on: post2.0
http://hg.mozilla.org/mozilla-central/rev/32b7f464e29f
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.2
No longer depends on: post2.0
Anna, thank you again for the patch.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: