Commit b2f02e03 authored by stransky's avatar stransky
Browse files

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

Depends on D169907

Differential Revision: https://phabricator.services.mozilla.com/D169908
parent d1704052
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -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);
}
+0 −1
Original line number Diff line number Diff line
@@ -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; }