summaryrefslogtreecommitdiff
path: root/www/galeon2/files/patch-mozilla_GaleonWrapper.cpp
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-05-16 22:02:15 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-05-16 22:02:15 +0000
commit561b6f108d5e0c6bc0ca977082f5506f05b4ff00 (patch)
treedd6b241cfc2ecd12a0f731e792cd47e3475e5080 /www/galeon2/files/patch-mozilla_GaleonWrapper.cpp
parentProperly configure on FreeBSD/amd64. (diff)
Update for Mozilla 1.4b.
Notes
Notes: svn path=/head/; revision=81124
Diffstat (limited to '')
-rw-r--r--www/galeon2/files/patch-mozilla_GaleonWrapper.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/www/galeon2/files/patch-mozilla_GaleonWrapper.cpp b/www/galeon2/files/patch-mozilla_GaleonWrapper.cpp
new file mode 100644
index 000000000000..dca228aec48f
--- /dev/null
+++ b/www/galeon2/files/patch-mozilla_GaleonWrapper.cpp
@@ -0,0 +1,28 @@
+--- mozilla/GaleonWrapper.cpp.orig Fri May 16 17:21:37 2003
++++ mozilla/GaleonWrapper.cpp Fri May 16 17:23:41 2003
+@@ -70,7 +70,11 @@
+ #include "nsCWebBrowser.h"
+ #include "nsReadableUtils.h"
+ #include "nsUnicharUtils.h"
++#if MOZILLA_SNAPSHOT > 7
++#include "nsIDOMNSDocument.h"
++#else
+ #include "nsIDOMNSHTMLDocument.h"
++#endif
+ #include "nsIDOMHTMLDocument.h"
+ #include "nsIDOMHTMLCollection.h"
+ #include "nsIDOMHTMLElement.h"
+@@ -1106,8 +1110,13 @@
+ result = GetDOMDocument (getter_AddRefs(DOMDocument));
+ if (NS_FAILED(result) || !DOMDocument) return NS_ERROR_FAILURE;
+
++#if MOZILLA_SNAPSHOT > 7
++ nsCOMPtr<nsIDOMNSDocument> doc = do_QueryInterface(DOMDocument);
++ if (!doc) return NS_ERROR_FAILURE;
++#else
+ nsCOMPtr<nsIDOMNSHTMLDocument> doc = do_QueryInterface(DOMDocument);
+ if(!doc) return NS_ERROR_FAILURE;
++#endif
+
+ nsAutoString value;
+ doc->GetLastModified(value);