mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 352093. Part 11: Remove GetWidget cals from the view maanger. r=bzbarsky
This commit is contained in:
parent
2ebc95776b
commit
934fc5b108
@ -844,7 +844,7 @@ nsIWidget* nsIView::GetNearestWidget(nsPoint* aOffset) const
|
|||||||
if (aOffset) {
|
if (aOffset) {
|
||||||
*aOffset = pt;
|
*aOffset = pt;
|
||||||
}
|
}
|
||||||
return static_cast<const nsView*>(this)->GetViewManager()->GetWidget();
|
return nsnull;
|
||||||
}
|
}
|
||||||
|
|
||||||
// pt is now the offset from v's origin to this's origin
|
// pt is now the offset from v's origin to this's origin
|
||||||
|
@ -978,7 +978,8 @@ NS_IMETHODIMP nsViewManager::DispatchEvent(nsGUIEvent *aEvent,
|
|||||||
// Make sure to not send WillPaint notifications while scrolling
|
// Make sure to not send WillPaint notifications while scrolling
|
||||||
nsRefPtr<nsViewManager> rootVM = RootViewManager();
|
nsRefPtr<nsViewManager> rootVM = RootViewManager();
|
||||||
|
|
||||||
nsIWidget *widget = mRootView->GetWidget();
|
nsCOMPtr<nsIWidget> widget;
|
||||||
|
rootVM->GetRootWidget(getter_AddRefs(widget));
|
||||||
PRBool transparentWindow = PR_FALSE;
|
PRBool transparentWindow = PR_FALSE;
|
||||||
if (widget)
|
if (widget)
|
||||||
transparentWindow = widget->GetTransparencyMode() == eTransparencyTransparent;
|
transparentWindow = widget->GetTransparencyMode() == eTransparencyTransparent;
|
||||||
|
Loading…
Reference in New Issue
Block a user