aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-02-12 23:57:47 +0800
committerChristian Persch <chpe@src.gnome.org>2004-02-12 23:57:47 +0800
commit7aa2a5fe7359080ede030b353f951942efae9b2d (patch)
treeddbb2f609d17f2c7ba6b536087c783c51e05cd03 /embed/mozilla/EphyBrowser.cpp
parentb19e63aed65b23a62025270f3e696ecb699cf82d (diff)
downloadgsoc2013-epiphany-7aa2a5fe7359080ede030b353f951942efae9b2d.tar
gsoc2013-epiphany-7aa2a5fe7359080ede030b353f951942efae9b2d.tar.gz
gsoc2013-epiphany-7aa2a5fe7359080ede030b353f951942efae9b2d.tar.bz2
gsoc2013-epiphany-7aa2a5fe7359080ede030b353f951942efae9b2d.tar.lz
gsoc2013-epiphany-7aa2a5fe7359080ede030b353f951942efae9b2d.tar.xz
gsoc2013-epiphany-7aa2a5fe7359080ede030b353f951942efae9b2d.tar.zst
gsoc2013-epiphany-7aa2a5fe7359080ede030b353f951942efae9b2d.zip
Adapt to the ever-changing mozilla APIs.
2004-02-12 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/GlobalHistory.cpp: * embed/mozilla/GlobalHistory.h: * embed/mozilla/MozRegisterComponents.cpp: Adapt to the ever-changing mozilla APIs.
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);
}