зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ba4ca0b344
Коммит
c0e0c3d0ea
|
@ -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; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче