Commit db105f08 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Wine Gecko 2.44 release.

Includes fixes by Sebastian Lackner. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent d9c8effb
......@@ -51,14 +51,14 @@
WINE_DEFAULT_DEBUG_CHANNEL(appwizcpl);
#define GECKO_VERSION "2.40"
#define GECKO_VERSION "2.44"
#ifdef __i386__
#define ARCH_STRING "x86"
#define GECKO_SHA "7001a6ed5b02d0ae4e73b14c92018d604b87f3ad"
#define GECKO_SHA "7930300c531d975ad63ee20d5e9b3974e339e43e"
#elif defined(__x86_64__)
#define ARCH_STRING "x86_64"
#define GECKO_SHA "356c414527b08b015b6dc53dbbf78d752320ae90"
#define GECKO_SHA "ed473f584938ebe8da1f6e660610e616104567b3"
#else
#define ARCH_STRING ""
#define GECKO_SHA "???"
......
......@@ -41,6 +41,8 @@
#define NS_ERROR_GENERATE_FAILURE(module,code) \
((nsresult) (((UINT32)(1u<<31)) | ((UINT32)(module+0x45)<<16) | ((UINT32)(code))))
#define NS_ERROR_GENERATE_SUCCESS(module,code) \
((nsresult) (((UINT32)(module+0x45)<<16) | ((UINT32)(code))))
#define NS_OK ((nsresult)0x00000000L)
#define NS_ERROR_FAILURE ((nsresult)0x80004005L)
......@@ -57,6 +59,7 @@
#define NS_BINDING_ABORTED NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 2)
#define NS_ERROR_UNKNOWN_PROTOCOL NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 18)
#define NS_SUCCESS_DEFAULT_ACTION NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_NETWORK, 66)
#define NS_FAILED(res) ((res) & 0x80000000)
#define NS_SUCCEEDED(res) (!NS_FAILED(res))
......@@ -846,7 +849,7 @@ HRESULT ProtocolFactory_Create(REFCLSID,REFIID,void**) DECLSPEC_HIDDEN;
BOOL load_gecko(void) DECLSPEC_HIDDEN;
void close_gecko(void) DECLSPEC_HIDDEN;
void register_nsservice(nsIComponentRegistrar*,nsIServiceManager*) DECLSPEC_HIDDEN;
void init_nsio(nsIComponentManager*,nsIComponentRegistrar*) DECLSPEC_HIDDEN;
void init_nsio(nsIComponentManager*) DECLSPEC_HIDDEN;
void release_nsio(void) DECLSPEC_HIDDEN;
BOOL is_gecko_path(const char*) DECLSPEC_HIDDEN;
void set_viewer_zoom(NSContainer*,float) DECLSPEC_HIDDEN;
......
......@@ -526,12 +526,17 @@ static void NSAPI nsDocumentObserver_CharacterDataChanged(nsIDocumentObserver *i
}
static void NSAPI nsDocumentObserver_AttributeWillChange(nsIDocumentObserver *iface, nsIDocument *aDocument,
nsIContent *aContent, LONG aNameSpaceID, nsIAtom *aAttribute, LONG aModType)
void *aElement, LONG aNameSpaceID, nsIAtom *aAttribute, LONG aModType, const nsAttrValue *aNewValue)
{
}
static void NSAPI nsDocumentObserver_AttributeChanged(nsIDocumentObserver *iface, nsIDocument *aDocument,
nsIContent *aContent, LONG aNameSpaceID, nsIAtom *aAttribute, LONG aModType)
void *aElement, LONG aNameSpaceID, nsIAtom *aAttribute, LONG aModType, const nsAttrValue *aOldValue)
{
}
static void NSAPI nsDocumentObserver_NativeAnonymousChildListChange(nsIDocumentObserver *iface, nsIDocument *aDocument,
nsIContent *aContent, cpp_bool aIsRemove)
{
}
......@@ -722,6 +727,7 @@ static const nsIDocumentObserverVtbl nsDocumentObserverVtbl = {
nsDocumentObserver_CharacterDataChanged,
nsDocumentObserver_AttributeWillChange,
nsDocumentObserver_AttributeChanged,
nsDocumentObserver_NativeAnonymousChildListChange,
nsDocumentObserver_AttributeSetToCurrentValue,
nsDocumentObserver_ContentAppended,
nsDocumentObserver_ContentInserted,
......
......@@ -458,9 +458,9 @@ static void set_environment(LPCWSTR gre_path)
if(TRACE_ON(gecko))
debug_level = 5;
else if(WARN_ON(gecko))
debug_level = 3;
else if(ERR_ON(gecko))
debug_level = 2;
else if(ERR_ON(gecko))
debug_level = 1;
sprintfW(buf, debug_formatW, debug_level);
SetEnvironmentVariableW(nspr_log_modulesW, buf);
......@@ -721,12 +721,7 @@ static BOOL init_xpcom(const PRUnichar *gre_path)
if(NS_FAILED(nsres))
ERR("Could not get nsIComponentManager: %08x\n", nsres);
nsres = NS_GetComponentRegistrar(&registrar);
if(NS_SUCCEEDED(nsres))
init_nsio(pCompMgr, registrar);
else
ERR("NS_GetComponentRegistrar failed: %08x\n", nsres);
init_nsio(pCompMgr);
init_mutation(pCompMgr);
set_preferences();
......@@ -735,9 +730,12 @@ static BOOL init_xpcom(const PRUnichar *gre_path)
if(NS_FAILED(nsres))
ERR("Could not get category manager service: %08x\n", nsres);
if(registrar) {
nsres = NS_GetComponentRegistrar(&registrar);
if(NS_SUCCEEDED(nsres)) {
register_nsservice(registrar, pServMgr);
nsIComponentRegistrar_Release(registrar);
}else {
ERR("NS_GetComponentRegistrar failed: %08x\n", nsres);
}
init_node_cc();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment