summaryrefslogtreecommitdiffstats
path: root/layout/base/ZoomConstraintsClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layout/base/ZoomConstraintsClient.cpp')
-rw-r--r--layout/base/ZoomConstraintsClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout/base/ZoomConstraintsClient.cpp b/layout/base/ZoomConstraintsClient.cpp
index 2391a116d..67666676b 100644
--- a/layout/base/ZoomConstraintsClient.cpp
+++ b/layout/base/ZoomConstraintsClient.cpp
@@ -53,7 +53,7 @@ GetWidget(nsIPresShell* aShell)
return nullptr;
}
if (nsIFrame* rootFrame = aShell->GetRootFrame()) {
-#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_UIKIT)
+#if defined(MOZ_WIDGET_UIKIT)
return rootFrame->GetNearestWidget();
#else
if (nsView* view = rootFrame->GetView()) {