diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-08-24 03:49:56 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-08-24 03:49:56 +0800 |
commit | bc36afd042c949d85f3e8aaa12566950aa57ebe8 (patch) | |
tree | d1f6917f9aec68ba7405020a9903a8e764be1fe3 /embed/mozilla/EphyWrapper.cpp | |
parent | 874672b2c7fba2a0a6ee9319c0aa3f58cfce5801 (diff) | |
download | gsoc2013-epiphany-bc36afd042c949d85f3e8aaa12566950aa57ebe8.tar gsoc2013-epiphany-bc36afd042c949d85f3e8aaa12566950aa57ebe8.tar.gz gsoc2013-epiphany-bc36afd042c949d85f3e8aaa12566950aa57ebe8.tar.bz2 gsoc2013-epiphany-bc36afd042c949d85f3e8aaa12566950aa57ebe8.tar.lz gsoc2013-epiphany-bc36afd042c949d85f3e8aaa12566950aa57ebe8.tar.xz gsoc2013-epiphany-bc36afd042c949d85f3e8aaa12566950aa57ebe8.tar.zst gsoc2013-epiphany-bc36afd042c949d85f3e8aaa12566950aa57ebe8.zip |
Add extra bogosity check, ported from galeon.
2003-08-23 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EphyWrapper.cpp: (SetZoomOnDocshell):
Add extra bogosity check, ported from galeon.
Diffstat (limited to 'embed/mozilla/EphyWrapper.cpp')
-rw-r--r-- | embed/mozilla/EphyWrapper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embed/mozilla/EphyWrapper.cpp b/embed/mozilla/EphyWrapper.cpp index 03514d21d..6fc76a840 100644 --- a/embed/mozilla/EphyWrapper.cpp +++ b/embed/mozilla/EphyWrapper.cpp @@ -353,6 +353,7 @@ nsresult EphyWrapper::SetZoomOnDocshell (float aZoom, nsIDocShell *DocShell) nsCOMPtr<nsIDeviceContext> DeviceContext; result = PresContext->GetDeviceContext (getter_AddRefs(DeviceContext)); + if (NS_FAILED(result) || !DeviceContext) return NS_ERROR_FAILURE; return DeviceContext->SetTextZoom (aZoom); } |