Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 197938 Details for
Bug 275252
www-client/galeon-2.0.7 fails to compile because missing member GetScrollTop of class nsIDOMNSHTMLElement
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
galeon-2.0.7-moz191.patch
galeon-2.0.7-moz191.patch (text/plain), 1.54 KB, created by
Pacho Ramos
on 2009-07-14 16:01:56 UTC
(
hide
)
Description:
galeon-2.0.7-moz191.patch
Filename:
MIME Type:
Creator:
Pacho Ramos
Created:
2009-07-14 16:01:56 UTC
Size:
1.54 KB
patch
obsolete
>diff -ur galeon-2.0.7.umg/mozilla/EventContext.cpp galeon-2.0.7/mozilla/EventContext.cpp >--- galeon-2.0.7.umg/mozilla/EventContext.cpp 2008-07-18 07:41:08.000000000 +0300 >+++ galeon-2.0.7/mozilla/EventContext.cpp 2009-01-06 23:17:32.000000000 +0200 >@@ -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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 275252
: 197938