mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 06:22:33 +00:00
Bug 1377486 - Make nsWindow 'final' to possibly devirtualize some calls. r=tn
MozReview-Commit-ID: GrcIukJYmt6
This commit is contained in:
parent
57cdb660f1
commit
15925cc551
@ -41,7 +41,7 @@ namespace mozilla {
|
||||
} // namespace ipc
|
||||
}
|
||||
|
||||
class nsWindow : public nsBaseWidget
|
||||
class nsWindow final : public nsBaseWidget
|
||||
{
|
||||
private:
|
||||
virtual ~nsWindow();
|
||||
|
@ -66,7 +66,6 @@ using namespace mozilla::widget;
|
||||
static NS_DEFINE_CID(kXULFilePickerCID, XULFILEPICKER_CID);
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsWindow)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsChildWindow)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTransferable)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsBidiKeyboard)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsHTMLFormatConverter)
|
||||
@ -230,7 +229,7 @@ NS_DEFINE_NAMED_CID(NS_GFXINFO_CID);
|
||||
|
||||
static const mozilla::Module::CIDEntry kWidgetCIDs[] = {
|
||||
{ &kNS_WINDOW_CID, false, nullptr, nsWindowConstructor },
|
||||
{ &kNS_CHILD_CID, false, nullptr, nsChildWindowConstructor },
|
||||
{ &kNS_CHILD_CID, false, nullptr, nsWindowConstructor },
|
||||
{ &kNS_APPSHELL_CID, false, nullptr, nsAppShellConstructor, Module::ALLOW_IN_GPU_PROCESS },
|
||||
{ &kNS_COLORPICKER_CID, false, nullptr, nsColorPickerConstructor, Module::MAIN_PROCESS_ONLY },
|
||||
{ &kNS_FILEPICKER_CID, false, nullptr, nsFilePickerConstructor, Module::MAIN_PROCESS_ONLY },
|
||||
|
@ -6192,12 +6192,6 @@ nsWindow::DispatchRestoreEventAccessible(void)
|
||||
|
||||
#endif /* #ifdef ACCESSIBILITY */
|
||||
|
||||
// nsChildWindow class
|
||||
|
||||
nsChildWindow::nsChildWindow() = default;
|
||||
|
||||
nsChildWindow::~nsChildWindow() = default;
|
||||
|
||||
void
|
||||
nsWindow::SetInputContext(const InputContext& aContext,
|
||||
const InputContextAction& aAction)
|
||||
|
@ -68,7 +68,7 @@ class TimeStamp;
|
||||
class CurrentX11TimeGetter;
|
||||
}
|
||||
|
||||
class nsWindow : public nsBaseWidget
|
||||
class nsWindow final : public nsBaseWidget
|
||||
{
|
||||
public:
|
||||
typedef mozilla::gfx::DrawTarget DrawTarget;
|
||||
@ -567,10 +567,4 @@ private:
|
||||
mozilla::UniquePtr<mozilla::CurrentX11TimeGetter> mCurrentTimeGetter;
|
||||
};
|
||||
|
||||
class nsChildWindow : public nsWindow {
|
||||
public:
|
||||
nsChildWindow();
|
||||
~nsChildWindow();
|
||||
};
|
||||
|
||||
#endif /* __nsWindow_h__ */
|
||||
|
@ -15,7 +15,7 @@
|
||||
@class UIView;
|
||||
@class ChildView;
|
||||
|
||||
class nsWindow :
|
||||
class nsWindow final :
|
||||
public nsBaseWidget
|
||||
{
|
||||
typedef nsBaseWidget Inherited;
|
||||
|
Loading…
x
Reference in New Issue
Block a user