зеркало из https://github.com/mozilla/gecko-dev.git
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 |
||
---|---|---|
.. | ||
crashtests | ||
ipc | ||
DrawEventRecorder.cpp | ||
DrawEventRecorder.h | ||
PrintTranslator.cpp | ||
PrintTranslator.h | ||
moz.build | ||
nsIPrintProgress.idl | ||
nsIPrintProgressParams.idl | ||
nsPagePrintTimer.cpp | ||
nsPagePrintTimer.h | ||
nsPrintData.cpp | ||
nsPrintData.h | ||
nsPrintJob.cpp | ||
nsPrintJob.h | ||
nsPrintObject.cpp | ||
nsPrintObject.h | ||
nsPrintPreviewListener.cpp | ||
nsPrintPreviewListener.h |