aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r--embed/mozilla/EphyBrowser.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index 4f8e31246..8cb9c1410 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -463,10 +463,16 @@ nsresult EphyBrowser::SetZoomOnDocshell (float aZoom, nsIDocShell *DocShell)
nsCOMPtr<nsIPresContext> PresContext;
DocShell->GetPresContext (getter_AddRefs(PresContext));
NS_ENSURE_TRUE (PresContext, NS_ERROR_FAILURE);
-
+
+#if MOZILLA_SNAPSHOT > 13
+ nsIDeviceContext *DeviceContext(nsnull);
+ DeviceContext = PresContext->DeviceContext();
+ NS_ENSURE_TRUE (DeviceContext, NS_ERROR_FAILURE);
+#else
nsCOMPtr<nsIDeviceContext> DeviceContext;
PresContext->GetDeviceContext (getter_AddRefs(DeviceContext));
NS_ENSURE_TRUE (DeviceContext, NS_ERROR_FAILURE);
+#endif
return DeviceContext->SetTextZoom (aZoom);
}