gecko-dev/layout
Gerald Squelart b099eab802 Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron
All classes deriving from nsIFrame that did not have any subclasses themselves
(at the time of writing this patch) have been marked with `final`.
Some other Layout classes have also been made final, but this was opportunistic
while working on nsIFrame subclasses, and is definitely not exhaustive, further
patches welcome; refer to bug 1332680.

Advantages of marking a class final include:
- Allowing the compiler to devirtualize some method calls (i.e., calling
  virtual functions directly instead of going through the vtable),
- Indicating that the class is not currently subclassed,
- Preventing subclassing without being aware that this would remove the
  finalization benefits of the parent class.
`final` does not signify that these classes should *never* be subclassed, this
is left for developers to decide.

Differential Revision: https://phabricator.services.mozilla.com/D5020

--HG--
extra : moz-landing-system : lando
2018-09-06 01:23:14 +00:00
..
base Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron 2018-09-06 01:23:14 +00:00
build Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron 2018-09-06 01:23:14 +00:00
doc Bug 1483090 - Rename StyleUserInterface to StyleUI. r=emilio 2018-08-14 08:37:37 +00:00
forms Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron 2018-09-06 01:23:14 +00:00
generic Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron 2018-09-06 01:23:14 +00:00
inspector Bug 1246764 - Part 2: Define path() for clip-path. r=emilio 2018-08-24 11:37:53 -07:00
ipc Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron 2018-09-06 01:23:14 +00:00
mathml Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron 2018-09-06 01:23:14 +00:00
media
painting Bug 1488889 - Pass nsSubDocumentFrame to nsDisplaySubDocument constructor r=mattwoodrow 2018-09-05 23:16:17 +00:00
printing Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron 2018-09-06 01:23:14 +00:00
reftests Bug 1487885. Mark new passing test as such. 2018-09-05 13:18:12 -04:00
style Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron 2018-09-06 01:23:14 +00:00
svg Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron 2018-09-06 01:23:14 +00:00
tables Bug 1482665 Part 2 - Remove nsPresContext::AppUnitsPerCSSPixel() and replace it with mozilla::AppUnitsPerCSSPixel(). r=dholbert 2018-08-13 14:29:28 -07:00
tools Bug 1475141 - [reftest] Make sure self.lastTestSeen displays whether the test was in-progress or finished, r=jmaher 2018-09-04 16:03:33 +00:00
xul Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron 2018-09-06 01:23:14 +00:00
moz.build