Closed Bug 1343874 Opened 4 years ago Closed 4 years ago
make some ns
Global Window methods non-virtual
I noticed last night that I accidentally made some methods on nsGlobalWindow virtual in bug 1303167. We can remove the virtual keyword here since we proxy from the nsPIDOMWindowInner via an inline method instead of using a virtual call.
This patch removes some virtual keywords that I accidentally left in when I implemented bug 1303167. They turned out to be unnecessary. https://treeherder.mozilla.org/#/jobs?repo=try&revision=1fceb3a215a49cfcca3c9848e0ad9db03f5bda7a
Attachment #8842865 - Flags: review?(bugs)
Comment on attachment 8842865 [details] [diff] [review] Remove unnecessary virtual keyword from some nsGlobalWindow methods. r=smaug oh, the setup is a bit unusual. Parent class calling subclass' methods via casting.
Attachment #8842865 - Flags: review?(bugs) → review+
(In reply to Olli Pettay [:smaug] from comment #2) > oh, the setup is a bit unusual. Parent class calling subclass' methods via > casting. Yes, but its an established pattern here. Its the best way to expose methods on nsPIDOMWindowInner, but not on nsPIDOMWindowOuter. Since we do the weird casting thing between nsPIDOMWindow[Inner|Outer] and nsGlobalWindow they must all have the same vtbl.
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/8c90ca8335b1 Remove unnecessary virtual keyword from some nsGlobalWindow methods. r=smaug
You need to log in before you can comment on or make changes to this bug.