Closed Bug 1116753 Opened 9 years ago Closed 9 years ago

Remove the nsIPresShell* param from all frame ctors

Categories

(Core :: Layout, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

Details

Attachments

(1 file)

We've already done this for almost all frames, but not for XUL frames
and a few others.
Attached patch fixSplinter Review
Most ctors are now 1-arg ctors so I added 'explicit' to those.
There were only a couple of places where the shell was actually used.
I replaced it with PresContext()->PresShell() which should work fine
in the body of a frame ctor.  Other than that, no significant changes.

https://tbpl.mozilla.org/?tree=Try&rev=01359209c378
Attachment #8542954 - Flags: review?(roc)
I missed an 'explicit' in one place which caused static analysis to fail,
so I landed this follow-up to fix that:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3405b354e2f1
https://hg.mozilla.org/mozilla-central/rev/426055dc106a
https://hg.mozilla.org/mozilla-central/rev/3405b354e2f1
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: