]> git.pld-linux.org Git - packages/galeon.git/commitdiff
- fix for building with xulrunner 1.9.1.x, taken from gentoo
authorhawk <hawk@pld-linux.org>
Mon, 10 Aug 2009 22:04:09 +0000 (22:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    galeon-xulrunner-1_9_1.patch -> 1.1

galeon-xulrunner-1_9_1.patch [new file with mode: 0644]

diff --git a/galeon-xulrunner-1_9_1.patch b/galeon-xulrunner-1_9_1.patch
new file mode 100644 (file)
index 0000000..f52e77b
--- /dev/null
@@ -0,0 +1,50 @@
+--- a/mozilla/EventContext.cpp
++++ b/mozilla/EventContext.cpp
+@@ -35,6 +35,7 @@
+ #include <nsIDOMXULDocument.h>
+ #include <nsIURI.h>
+ #include <nsIDOMNSEvent.h>
++#include <nsIDOMNSElement.h>
+ #include <nsIDOMNSHTMLElement.h>
+ #include <nsIDOMCharacterData.h>
+ #include <nsIDOMHTMLButtonElement.h>
+@@ -518,20 +519,21 @@
+ nsresult EventContext::GetTargetCoords (nsIDOMEventTarget *aTarget, PRInt32 *aX, PRInt32 *aY)
+ {
+       /* Calculate the node coordinates relative to the widget origin */
+-      nsCOMPtr<nsIDOMNSHTMLElement> elem = do_QueryInterface(aTarget);
++      nsCOMPtr<nsIDOMNSHTMLElement> nsHTMLElem (do_QueryInterface(aTarget));
+       PRInt32 x = 0, y = 0;
+-      while (elem)
++      while (nsHTMLElem)
+       {
+               PRInt32 val;
+-              elem->GetOffsetTop(&val);       y += val;
+-              elem->GetScrollTop(&val);       y -= val;
+-              elem->GetOffsetLeft(&val);      x += val;
+-              elem->GetScrollLeft(&val);      x -= val;
++              nsCOMPtr<nsIDOMNSElement> nsElem (do_QueryInterface(nsHTMLElem));   
++              nsHTMLElem->GetOffsetTop(&val);         y += val;
++              nsElem->GetScrollTop(&val);             y -= val;
++              nsHTMLElem->GetOffsetLeft(&val);        x += val;
++              nsElem->GetScrollLeft(&val);    x -= val;
+               nsCOMPtr<nsIDOMElement> parent;
+-              elem->GetOffsetParent(getter_AddRefs(parent));
+-              elem = do_QueryInterface(parent);
++              nsHTMLElem->GetOffsetParent (getter_AddRefs (parent));
++              nsHTMLElem = do_QueryInterface(parent);
+       }
+       *aX = x;
+       *aY = y;
+--- a/mozilla/MozRegisterComponents.cpp~       2009-07-25 10:08:06.182333088 +0200
++++ b/mozilla/MozRegisterComponents.cpp        2009-07-25 12:06:46.254122116 +0200
+@@ -44,6 +44,7 @@
+ #ifdef HAVE_NSIXULAPPINFO_H
+ #include <nsXULAppAPI.h>
++#include <nsXPCOMCIDInternal.h>
+ #include "EphyXULAppInfo.h"
+ #endif
This page took 0.214886 seconds and 4 git commands to generate.