Bug 1813407 [Linux] Remove unused nsWindow::GetMozContainerSize() r=emilio

Depends on D169907

Differential Revision: https://phabricator.services.mozilla.com/D169908
This commit is contained in:
stransky 2023-02-23 10:52:15 +00:00
Родитель ba4ca0b344
Коммит c0e0c3d0ea
2 изменённых файлов: 0 добавлений и 13 удалений

Просмотреть файл

@ -9660,18 +9660,6 @@ void nsWindow::SetEGLNativeWindowSize(
}
#endif
LayoutDeviceIntSize nsWindow::GetMozContainerSize() {
LayoutDeviceIntSize size(0, 0);
if (mContainer) {
GtkAllocation allocation;
gtk_widget_get_allocation(GTK_WIDGET(mContainer), &allocation);
double scale = FractionalScaleFactor();
size.width = round(allocation.width * scale);
size.height = round(allocation.height * scale);
}
return size;
}
nsWindow* nsWindow::GetWindow(GdkWindow* window) {
return get_window_for_gdk_window(window);
}

Просмотреть файл

@ -274,7 +274,6 @@ class nsWindow final : public nsBaseWidget {
static guint32 sLastButtonPressTime;
MozContainer* GetMozContainer() { return mContainer; }
LayoutDeviceIntSize GetMozContainerSize();
GdkWindow* GetGdkWindow() const { return mGdkWindow; };
GdkWindow* GetToplevelGdkWindow() const;
GtkWidget* GetGtkWidget() const { return mShell; }