Jacek Caban : mshtml: Fixed nsEventStates handling.

Alexandre Julliard julliard at winehq.org
Wed Nov 30 14:19:21 CST 2011


Module: wine
Branch: master
Commit: 38371bed2950cdaaceeb3e9723c1a594eeef536f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=38371bed2950cdaaceeb3e9723c1a594eeef536f

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Nov 30 13:53:33 2011 +0100

mshtml: Fixed nsEventStates handling.

It contains a copy-constructor in C++, so it's passed as a pointer.

---

 dlls/mshtml/mutation.c  |    4 ++--
 dlls/mshtml/nsiface.idl |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/mshtml/mutation.c b/dlls/mshtml/mutation.c
index ba98d41..19b4143 100644
--- a/dlls/mshtml/mutation.c
+++ b/dlls/mshtml/mutation.c
@@ -552,12 +552,12 @@ static void NSAPI nsDocumentObserver_EndLoad(nsIDocumentObserver *iface, nsIDocu
 }
 
 static void NSAPI nsDocumentObserver_ContentStatesChanged(nsIDocumentObserver *iface, nsIDocument *aDocument,
-        nsIContent *aContent, nsEventStates aStateMask)
+        nsIContent *aContent, nsEventStates *aStateMask)
 {
 }
 
 static void NSAPI nsDocumentObserver_DocumentStatesChanged(nsIDocumentObserver *iface, nsIDocument *aDocument,
-        nsEventStates aStateMask)
+        nsEventStates *aStateMask)
 {
 }
 
diff --git a/dlls/mshtml/nsiface.idl b/dlls/mshtml/nsiface.idl
index 7849ee5..1477f2d 100644
--- a/dlls/mshtml/nsiface.idl
+++ b/dlls/mshtml/nsiface.idl
@@ -3169,7 +3169,7 @@ interface nsIParser : nsISupports
 ]
 interface nsIDocumentObserver : nsIMutationObserver
 {
-    typedef int nsUpdateType;
+    typedef PRUint32 nsUpdateType;
 
     typedef struct {
         PRUint64 mStates;
@@ -3179,8 +3179,8 @@ interface nsIDocumentObserver : nsIMutationObserver
     void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
     void BeginLoad(nsIDocument *aDocument);
     void EndLoad(nsIDocument *aDocument);
-    void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent, nsEventStates aStateMask);
-    void DocumentStatesChanged(nsIDocument *aDocument, nsEventStates aStateMask);
+    void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent, nsEventStates *aStateMask);
+    void DocumentStatesChanged(nsIDocument *aDocument, nsEventStates *aStateMask);
     void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
     void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
     void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,




More information about the wine-cvs mailing list