diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-11 05:33:04 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-11 05:33:04 +0800 |
commit | d33c13d6d52a405ef9bec15b414904a9c2620380 (patch) | |
tree | 446f235cdd08562866b99d357a5768843c416d4f /embed/mozilla/EphyBrowser.cpp | |
parent | f8ad4229cc4367fbf672b375b9f0e0338a907bbb (diff) | |
download | gsoc2013-epiphany-d33c13d6d52a405ef9bec15b414904a9c2620380.tar gsoc2013-epiphany-d33c13d6d52a405ef9bec15b414904a9c2620380.tar.gz gsoc2013-epiphany-d33c13d6d52a405ef9bec15b414904a9c2620380.tar.bz2 gsoc2013-epiphany-d33c13d6d52a405ef9bec15b414904a9c2620380.tar.lz gsoc2013-epiphany-d33c13d6d52a405ef9bec15b414904a9c2620380.tar.xz gsoc2013-epiphany-d33c13d6d52a405ef9bec15b414904a9c2620380.tar.zst gsoc2013-epiphany-d33c13d6d52a405ef9bec15b414904a9c2620380.zip |
Adapt to the ever-changing mozilla API.
2004-01-10 Christian Persch <chpe@cvs.gnome.org>
* configure.in:
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EventContext.cpp:
Adapt to the ever-changing mozilla API.
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index b57bb44e8..1581050bd 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -135,7 +135,10 @@ EphyFaviconEventListener::HandleFaviconLink (nsIDOMNode *node) nsCOMPtr<nsIDocument> doc = do_QueryInterface (domDoc); NS_ENSURE_TRUE (doc, NS_ERROR_FAILURE); -#if MOZILLA_SNAPSHOT > 11 +#if MOZILLA_SNAPSHOT > 13 + nsIURI *uri; + uri = doc->GetDocumentURI (); +#elif MOZILLA_SNAPSHOT > 11 nsIURI *uri; uri = doc->GetDocumentURL (); #else @@ -631,7 +634,10 @@ nsresult EphyBrowser::GetDocumentUrl (nsCString &url) nsCOMPtr<nsIDocument> doc = do_QueryInterface(DOMDocument); NS_ENSURE_TRUE (doc, NS_ERROR_FAILURE); -#if MOZILLA_SNAPSHOT > 11 +#if MOZILLA_SNAPSHOT > 13 + nsIURI *uri; + uri = doc->GetDocumentURI (); +#elif MOZILLA_SNAPSHOT > 11 nsIURI *uri; uri = doc->GetDocumentURL (); #else @@ -652,7 +658,10 @@ nsresult EphyBrowser::GetTargetDocumentUrl (nsCString &url) nsCOMPtr<nsIDocument> doc = do_QueryInterface(DOMDocument); NS_ENSURE_TRUE (doc, NS_ERROR_FAILURE); -#if MOZILLA_SNAPSHOT > 11 +#if MOZILLA_SNAPSHOT > 13 + nsIURI *uri; + uri = doc->GetDocumentURI (); +#elif MOZILLA_SNAPSHOT > 11 nsIURI *uri; uri = doc->GetDocumentURL (); #else |