packages: galeon/galeon-xulrunner-1_9_1.patch (NEW) - fix for building with...

hawk hawk at pld-linux.org
Tue Aug 11 00:04:14 CEST 2009


Author: hawk                         Date: Mon Aug 10 22:04:14 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix for building with xulrunner 1.9.1.x, taken from gentoo

---- Files affected:
packages/galeon:
   galeon-xulrunner-1_9_1.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/galeon/galeon-xulrunner-1_9_1.patch
diff -u /dev/null packages/galeon/galeon-xulrunner-1_9_1.patch:1.1
--- /dev/null	Tue Aug 11 00:04:14 2009
+++ packages/galeon/galeon-xulrunner-1_9_1.patch	Tue Aug 11 00:04:09 2009
@@ -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
+ 
================================================================


More information about the pld-cvs-commit mailing list