Commit 6991cf64 authored by Robert O'Callahan's avatar Robert O'Callahan
Browse files

Bug 352093. Part 13: Remove nsIViewManager::GetWidget since no-one should be using it. r=bzbarsky

parent a756d86e
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -60,8 +60,8 @@ enum nsRectVisibility {
}; 

#define NS_IVIEWMANAGER_IID   \
  { 0x50c0a18c, 0x3e39, 0x4606, \
    { 0x85, 0x77, 0xe7, 0x3a, 0xcc, 0xb4, 0x66, 0xc9 } }
  { 0x739bbc2b, 0x5c45, 0x40bb, \
    { 0xb0, 0xbc, 0xe3, 0x1c, 0xe0, 0xf2, 0x19, 0xc2 } }

class nsIViewManager : public nsISupports
{
@@ -416,13 +416,6 @@ public:
   */
  NS_IMETHOD GetRootScrollableView(nsIScrollableView **aScrollable) = 0;

  /**
   * Retrieve the widget at the root of the view manager. This is the
   * widget associated with the root view, if the root view exists and has
   * a widget.
   */
  NS_IMETHOD GetWidget(nsIWidget **aWidget) = 0;

  /**
   * Retrieve the widget at the root of the nearest enclosing
   * view manager whose root view has a widget.
+0 −7
Original line number Diff line number Diff line
@@ -1868,13 +1868,6 @@ NS_IMETHODIMP nsViewManager::GetRootScrollableView(nsIScrollableView **aScrollab
  return NS_OK;
}

NS_IMETHODIMP nsViewManager::GetWidget(nsIWidget **aWidget)
{
  *aWidget = GetWidget();
  NS_IF_ADDREF(*aWidget);
  return NS_OK;
}

NS_IMETHODIMP nsViewManager::GetRootWidget(nsIWidget **aWidget)
{
  if (!mRootView) {
+0 −2
Original line number Diff line number Diff line
@@ -171,8 +171,6 @@ public:
  NS_IMETHOD  SetRootScrollableView(nsIScrollableView *aScrollable);
  NS_IMETHOD  GetRootScrollableView(nsIScrollableView **aScrollable);

  NS_IMETHOD GetWidget(nsIWidget **aWidget);
  nsIWidget* GetWidget() { return mRootView ? mRootView->GetWidget() : nsnull; }
  NS_IMETHOD GetRootWidget(nsIWidget **aWidget);
  NS_IMETHOD ForceUpdate();