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

mshtml: Wine Gecko 2.21 release.

parent d3c3a38f
...@@ -53,14 +53,14 @@ ...@@ -53,14 +53,14 @@
WINE_DEFAULT_DEBUG_CHANNEL(appwizcpl); WINE_DEFAULT_DEBUG_CHANNEL(appwizcpl);
#define GECKO_VERSION "1.9" #define GECKO_VERSION "2.21"
#ifdef __i386__ #ifdef __i386__
#define ARCH_STRING "x86" #define ARCH_STRING "x86"
#define GECKO_SHA "d2553224848a926eacfa8685662ff1d7e8be2428" #define GECKO_SHA "a514fc4d53783a586c7880a676c415695fe934a3"
#elif defined(__x86_64__) #elif defined(__x86_64__)
#define ARCH_STRING "x86_64" #define ARCH_STRING "x86_64"
#define GECKO_SHA "c7cd0994f89dd15b36ce8dacaa33d0ec47c407d1" #define GECKO_SHA "c6f249ff2c6eb7dfe423ef246aba54e1a3b26934"
#else #else
#define ARCH_STRING "" #define ARCH_STRING ""
#define GECKO_SHA "???" #define GECKO_SHA "???"
......
...@@ -1254,22 +1254,22 @@ static HRESULT WINAPI HTMLElement2_getElementsByTagName(IHTMLElement2 *iface, BS ...@@ -1254,22 +1254,22 @@ static HRESULT WINAPI HTMLElement2_getElementsByTagName(IHTMLElement2 *iface, BS
IHTMLElementCollection **pelColl) IHTMLElementCollection **pelColl)
{ {
HTMLElement *This = impl_from_IHTMLElement2(iface); HTMLElement *This = impl_from_IHTMLElement2(iface);
nsIDOMNodeList *nslist; nsIDOMHTMLCollection *nscol;
nsAString tag_str; nsAString tag_str;
nsresult nsres; nsresult nsres;
TRACE("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl); TRACE("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl);
nsAString_InitDepend(&tag_str, v); nsAString_InitDepend(&tag_str, v);
nsres = nsIDOMHTMLElement_GetElementsByTagName(This->nselem, &tag_str, &nslist); nsres = nsIDOMHTMLElement_GetElementsByTagName(This->nselem, &tag_str, &nscol);
nsAString_Finish(&tag_str); nsAString_Finish(&tag_str);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
ERR("GetElementByTagName failed: %08x\n", nsres); ERR("GetElementByTagName failed: %08x\n", nsres);
return E_FAIL; return E_FAIL;
} }
*pelColl = create_collection_from_nodelist(This->node.doc, nslist); *pelColl = create_collection_from_htmlcol(This->node.doc, nscol);
nsIDOMNodeList_Release(nslist); nsIDOMHTMLCollection_Release(nscol);
return S_OK; return S_OK;
} }
......
...@@ -834,7 +834,7 @@ static nsresult NSAPI nsChannel_SetContentCharset(nsIHttpChannel *iface, ...@@ -834,7 +834,7 @@ static nsresult NSAPI nsChannel_SetContentCharset(nsIHttpChannel *iface,
return NS_OK; return NS_OK;
} }
static nsresult NSAPI nsChannel_GetContentLength(nsIHttpChannel *iface, LONG *aContentLength) static nsresult NSAPI nsChannel_GetContentLength(nsIHttpChannel *iface, INT64 *aContentLength)
{ {
nsChannel *This = impl_from_nsIHttpChannel(iface); nsChannel *This = impl_from_nsIHttpChannel(iface);
...@@ -843,11 +843,11 @@ static nsresult NSAPI nsChannel_GetContentLength(nsIHttpChannel *iface, LONG *aC ...@@ -843,11 +843,11 @@ static nsresult NSAPI nsChannel_GetContentLength(nsIHttpChannel *iface, LONG *aC
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
static nsresult NSAPI nsChannel_SetContentLength(nsIHttpChannel *iface, LONG aContentLength) static nsresult NSAPI nsChannel_SetContentLength(nsIHttpChannel *iface, INT64 aContentLength)
{ {
nsChannel *This = impl_from_nsIHttpChannel(iface); nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%d)\n", This, aContentLength); FIXME("(%p)->(%s)\n", This, wine_dbgstr_longlong(aContentLength));
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
...@@ -1382,6 +1382,15 @@ static nsresult NSAPI nsChannel_IsNoCacheResponse(nsIHttpChannel *iface, cpp_boo ...@@ -1382,6 +1382,15 @@ static nsresult NSAPI nsChannel_IsNoCacheResponse(nsIHttpChannel *iface, cpp_boo
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
static nsresult NSAPI nsChannel_RedirectTo(nsIHttpChannel *iface, nsIURI *aNewURI)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%p)\n", This, aNewURI);
return NS_ERROR_NOT_IMPLEMENTED;
}
static const nsIHttpChannelVtbl nsChannelVtbl = { static const nsIHttpChannelVtbl nsChannelVtbl = {
nsChannel_QueryInterface, nsChannel_QueryInterface,
nsChannel_AddRef, nsChannel_AddRef,
...@@ -1435,7 +1444,8 @@ static const nsIHttpChannelVtbl nsChannelVtbl = { ...@@ -1435,7 +1444,8 @@ static const nsIHttpChannelVtbl nsChannelVtbl = {
nsChannel_SetResponseHeader, nsChannel_SetResponseHeader,
nsChannel_VisitResponseHeaders, nsChannel_VisitResponseHeaders,
nsChannel_IsNoStoreResponse, nsChannel_IsNoStoreResponse,
nsChannel_IsNoCacheResponse nsChannel_IsNoCacheResponse,
nsChannel_RedirectTo
}; };
static inline nsChannel *impl_from_nsIUploadChannel(nsIUploadChannel *iface) static inline nsChannel *impl_from_nsIUploadChannel(nsIUploadChannel *iface)
...@@ -1719,6 +1729,34 @@ static nsresult NSAPI nsHttpChannelInternal_SetAllowSpdy(nsIHttpChannelInternal ...@@ -1719,6 +1729,34 @@ static nsresult NSAPI nsHttpChannelInternal_SetAllowSpdy(nsIHttpChannelInternal
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
static nsresult NSAPI nsHttpChannelInternal_GetLoadAsBlocking(nsIHttpChannelInternal *iface, cpp_bool *aLoadAsBlocking)
{
nsChannel *This = impl_from_nsIHttpChannelInternal(iface);
FIXME("(%p)->(%p)\n", This, aLoadAsBlocking);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsHttpChannelInternal_SetLoadAsBlocking(nsIHttpChannelInternal *iface, cpp_bool aLoadAsBlocking)
{
nsChannel *This = impl_from_nsIHttpChannelInternal(iface);
FIXME("(%p)->(%x)\n", This, aLoadAsBlocking);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsHttpChannelInternal_GetLoadUnblocked(nsIHttpChannelInternal *iface, cpp_bool *aLoadUnblocked)
{
nsChannel *This = impl_from_nsIHttpChannelInternal(iface);
FIXME("(%p)->(%p)\n", This, aLoadUnblocked);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsHttpChannelInternal_SetLoadUnblocked(nsIHttpChannelInternal *iface, cpp_bool aLoadUnblocked)
{
nsChannel *This = impl_from_nsIHttpChannelInternal(iface);
FIXME("(%p)->(%x)\n", This, aLoadUnblocked);
return NS_ERROR_NOT_IMPLEMENTED;
}
static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = { static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = {
nsHttpChannelInternal_QueryInterface, nsHttpChannelInternal_QueryInterface,
nsHttpChannelInternal_AddRef, nsHttpChannelInternal_AddRef,
...@@ -1741,7 +1779,11 @@ static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = { ...@@ -1741,7 +1779,11 @@ static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = {
nsHttpChannelInternal_SetCacheKeysRedirectChain, nsHttpChannelInternal_SetCacheKeysRedirectChain,
nsHttpChannelInternal_HTTPUpgrade, nsHttpChannelInternal_HTTPUpgrade,
nsHttpChannelInternal_GetAllowSpdy, nsHttpChannelInternal_GetAllowSpdy,
nsHttpChannelInternal_SetAllowSpdy nsHttpChannelInternal_SetAllowSpdy,
nsHttpChannelInternal_GetLoadAsBlocking,
nsHttpChannelInternal_SetLoadAsBlocking,
nsHttpChannelInternal_GetLoadUnblocked,
nsHttpChannelInternal_SetLoadUnblocked
}; };
......
...@@ -272,7 +272,7 @@ static HRESULT fill_props(nsIDOMHTMLElement *nselem, PropertyBag *prop_bag) ...@@ -272,7 +272,7 @@ static HRESULT fill_props(nsIDOMHTMLElement *nselem, PropertyBag *prop_bag)
{ {
nsIDOMHTMLParamElement *nsparam; nsIDOMHTMLParamElement *nsparam;
nsAString name_str, value_str; nsAString name_str, value_str;
nsIDOMNodeList *params; nsIDOMHTMLCollection *params;
UINT32 length, i; UINT32 length, i;
nsIDOMNode *nsnode; nsIDOMNode *nsnode;
nsresult nsres; nsresult nsres;
...@@ -286,12 +286,12 @@ static HRESULT fill_props(nsIDOMHTMLElement *nselem, PropertyBag *prop_bag) ...@@ -286,12 +286,12 @@ static HRESULT fill_props(nsIDOMHTMLElement *nselem, PropertyBag *prop_bag)
if(NS_FAILED(nsres)) if(NS_FAILED(nsres))
return E_FAIL; return E_FAIL;
nsres = nsIDOMNodeList_GetLength(params, &length); nsres = nsIDOMHTMLCollection_GetLength(params, &length);
if(NS_FAILED(nsres)) if(NS_FAILED(nsres))
length = 0; length = 0;
for(i=0; i < length; i++) { for(i=0; i < length; i++) {
nsres = nsIDOMNodeList_Item(params, i, &nsnode); nsres = nsIDOMHTMLCollection_Item(params, i, &nsnode);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
hres = E_FAIL; hres = E_FAIL;
break; break;
...@@ -330,7 +330,7 @@ static HRESULT fill_props(nsIDOMHTMLElement *nselem, PropertyBag *prop_bag) ...@@ -330,7 +330,7 @@ static HRESULT fill_props(nsIDOMHTMLElement *nselem, PropertyBag *prop_bag)
} }
} }
nsIDOMNodeList_Release(params); nsIDOMHTMLCollection_Release(params);
return hres; return hres;
} }
......
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