Backed out changeset da5c71190673 (bug 1773813) for causing build bustages CLOSED TREE

This commit is contained in:
Norisz Fay
2022-06-14 15:13:58 +03:00
parent a5efe79c92
commit 994a679882
20 changed files with 366 additions and 242 deletions

View File

@@ -4641,14 +4641,20 @@ nsDocShell::Destroy() {
return NS_OK;
}
double nsDocShell::GetWidgetCSSToDeviceScale() {
NS_IMETHODIMP
nsDocShell::GetUnscaledDevicePixelsPerCSSPixel(double* aScale) {
if (mParentWidget) {
return mParentWidget->GetDefaultScale().scale;
*aScale = mParentWidget->GetDefaultScale().scale;
return NS_OK;
}
if (nsCOMPtr<nsIBaseWindow> ownerWindow = do_QueryInterface(mTreeOwner)) {
return ownerWindow->GetWidgetCSSToDeviceScale();
nsCOMPtr<nsIBaseWindow> ownerWindow(do_QueryInterface(mTreeOwner));
if (ownerWindow) {
return ownerWindow->GetUnscaledDevicePixelsPerCSSPixel(aScale);
}
return 1.0;
*aScale = 1.0;
return NS_OK;
}
NS_IMETHODIMP