mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
b099eab802
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 |
||
---|---|---|
.. | ||
moz.build | ||
PRenderFrame.ipdl | ||
PVsync.ipdl | ||
RenderFrameChild.cpp | ||
RenderFrameChild.h | ||
RenderFrameParent.cpp | ||
RenderFrameParent.h | ||
VsyncChild.cpp | ||
VsyncChild.h | ||
VsyncParent.cpp | ||
VsyncParent.h |