Commit 23c6fdde authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Wine Gecko 1.5 release.

parent 84ed86c4
...@@ -51,14 +51,14 @@ ...@@ -51,14 +51,14 @@
WINE_DEFAULT_DEBUG_CHANNEL(appwizcpl); WINE_DEFAULT_DEBUG_CHANNEL(appwizcpl);
#define GECKO_VERSION "1.4" #define GECKO_VERSION "1.5"
#ifdef __i386__ #ifdef __i386__
#define ARCH_STRING "x86" #define ARCH_STRING "x86"
#define GECKO_SHA "c30aa99621e98336eb4b7e2074118b8af8ea2ad5" #define GECKO_SHA "07b2bc74d03c885bb39124a7641715314cd3ae71"
#elif defined(__x86_64__) #elif defined(__x86_64__)
#define ARCH_STRING "x86_64" #define ARCH_STRING "x86_64"
#define GECKO_SHA "bf0aaf56a8cf9abd75be02b56b05e5c4e9a4df93" #define GECKO_SHA "80a3b36c30bb79a11889879392fdc1fcda9ca165"
#else #else
#define ARCH_STRING "" #define ARCH_STRING ""
#define GECKO_SHA "???" #define GECKO_SHA "???"
......
...@@ -874,20 +874,12 @@ static HRESULT WINAPI HTMLElement_get_lang(IHTMLElement *iface, BSTR *p) ...@@ -874,20 +874,12 @@ static HRESULT WINAPI HTMLElement_get_lang(IHTMLElement *iface, BSTR *p)
static HRESULT WINAPI HTMLElement_get_offsetLeft(IHTMLElement *iface, LONG *p) static HRESULT WINAPI HTMLElement_get_offsetLeft(IHTMLElement *iface, LONG *p)
{ {
HTMLElement *This = impl_from_IHTMLElement(iface); HTMLElement *This = impl_from_IHTMLElement(iface);
nsIDOMNSHTMLElement *nselem;
PRInt32 off_left = 0; PRInt32 off_left = 0;
nsresult nsres; nsresult nsres;
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem); nsres = nsIDOMHTMLElement_GetOffsetLeft(This->nselem, &off_left);
if(NS_FAILED(nsres)) {
ERR("Could not get nsIDOMNSHTMLElement: %08x\n", nsres);
return E_FAIL;
}
nsres = nsIDOMNSHTMLElement_GetOffsetLeft(nselem, &off_left);
nsIDOMNSHTMLElement_Release(nselem);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
ERR("GetOffsetLeft failed: %08x\n", nsres); ERR("GetOffsetLeft failed: %08x\n", nsres);
return E_FAIL; return E_FAIL;
...@@ -900,20 +892,12 @@ static HRESULT WINAPI HTMLElement_get_offsetLeft(IHTMLElement *iface, LONG *p) ...@@ -900,20 +892,12 @@ static HRESULT WINAPI HTMLElement_get_offsetLeft(IHTMLElement *iface, LONG *p)
static HRESULT WINAPI HTMLElement_get_offsetTop(IHTMLElement *iface, LONG *p) static HRESULT WINAPI HTMLElement_get_offsetTop(IHTMLElement *iface, LONG *p)
{ {
HTMLElement *This = impl_from_IHTMLElement(iface); HTMLElement *This = impl_from_IHTMLElement(iface);
nsIDOMNSHTMLElement *nselem;
PRInt32 top = 0; PRInt32 top = 0;
nsresult nsres; nsresult nsres;
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem); nsres = nsIDOMHTMLElement_GetOffsetTop(This->nselem, &top);
if(NS_FAILED(nsres)) {
ERR("Could not get nsIDOMNSHTMLElement: %08x\n", nsres);
return E_FAIL;
}
nsres = nsIDOMNSHTMLElement_GetOffsetTop(nselem, &top);
nsIDOMNSHTMLElement_Release(nselem);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
ERR("GetOffsetTop failed: %08x\n", nsres); ERR("GetOffsetTop failed: %08x\n", nsres);
return E_FAIL; return E_FAIL;
...@@ -926,20 +910,12 @@ static HRESULT WINAPI HTMLElement_get_offsetTop(IHTMLElement *iface, LONG *p) ...@@ -926,20 +910,12 @@ static HRESULT WINAPI HTMLElement_get_offsetTop(IHTMLElement *iface, LONG *p)
static HRESULT WINAPI HTMLElement_get_offsetWidth(IHTMLElement *iface, LONG *p) static HRESULT WINAPI HTMLElement_get_offsetWidth(IHTMLElement *iface, LONG *p)
{ {
HTMLElement *This = impl_from_IHTMLElement(iface); HTMLElement *This = impl_from_IHTMLElement(iface);
nsIDOMNSHTMLElement *nselem;
PRInt32 offset = 0; PRInt32 offset = 0;
nsresult nsres; nsresult nsres;
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem); nsres = nsIDOMHTMLElement_GetOffsetWidth(This->nselem, &offset);
if(NS_FAILED(nsres)) {
ERR("Could not get nsIDOMNSHTMLElement: %08x\n", nsres);
return E_FAIL;
}
nsres = nsIDOMNSHTMLElement_GetOffsetWidth(nselem, &offset);
nsIDOMNSHTMLElement_Release(nselem);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
ERR("GetOffsetWidth failed: %08x\n", nsres); ERR("GetOffsetWidth failed: %08x\n", nsres);
return E_FAIL; return E_FAIL;
...@@ -952,20 +928,12 @@ static HRESULT WINAPI HTMLElement_get_offsetWidth(IHTMLElement *iface, LONG *p) ...@@ -952,20 +928,12 @@ static HRESULT WINAPI HTMLElement_get_offsetWidth(IHTMLElement *iface, LONG *p)
static HRESULT WINAPI HTMLElement_get_offsetHeight(IHTMLElement *iface, LONG *p) static HRESULT WINAPI HTMLElement_get_offsetHeight(IHTMLElement *iface, LONG *p)
{ {
HTMLElement *This = impl_from_IHTMLElement(iface); HTMLElement *This = impl_from_IHTMLElement(iface);
nsIDOMNSHTMLElement *nselem;
PRInt32 offset = 0; PRInt32 offset = 0;
nsresult nsres; nsresult nsres;
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem); nsres = nsIDOMHTMLElement_GetOffsetHeight(This->nselem, &offset);
if(NS_FAILED(nsres)) {
ERR("Could not get nsIDOMNSHTMLElement: %08x\n", nsres);
return E_FAIL;
}
nsres = nsIDOMNSHTMLElement_GetOffsetHeight(nselem, &offset);
nsIDOMNSHTMLElement_Release(nselem);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
ERR("GetOffsetHeight failed: %08x\n", nsres); ERR("GetOffsetHeight failed: %08x\n", nsres);
return E_FAIL; return E_FAIL;
...@@ -978,21 +946,13 @@ static HRESULT WINAPI HTMLElement_get_offsetHeight(IHTMLElement *iface, LONG *p) ...@@ -978,21 +946,13 @@ static HRESULT WINAPI HTMLElement_get_offsetHeight(IHTMLElement *iface, LONG *p)
static HRESULT WINAPI HTMLElement_get_offsetParent(IHTMLElement *iface, IHTMLElement **p) static HRESULT WINAPI HTMLElement_get_offsetParent(IHTMLElement *iface, IHTMLElement **p)
{ {
HTMLElement *This = impl_from_IHTMLElement(iface); HTMLElement *This = impl_from_IHTMLElement(iface);
nsIDOMNSHTMLElement *nselem;
nsIDOMElement *nsparent; nsIDOMElement *nsparent;
nsresult nsres; nsresult nsres;
HRESULT hres; HRESULT hres;
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem); nsres = nsIDOMHTMLElement_GetOffsetParent(This->nselem, &nsparent);
if(NS_FAILED(nsres)) {
ERR("Could not get nsIDOMNSHTMLElement: %08x\n", nsres);
return E_FAIL;
}
nsres = nsIDOMNSHTMLElement_GetOffsetParent(nselem, &nsparent);
nsIDOMNSHTMLElement_Release(nselem);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
ERR("GetOffsetParent failed: %08x\n", nsres); ERR("GetOffsetParent failed: %08x\n", nsres);
return E_FAIL; return E_FAIL;
...@@ -1018,7 +978,6 @@ static HRESULT WINAPI HTMLElement_get_offsetParent(IHTMLElement *iface, IHTMLEle ...@@ -1018,7 +978,6 @@ static HRESULT WINAPI HTMLElement_get_offsetParent(IHTMLElement *iface, IHTMLEle
static HRESULT WINAPI HTMLElement_put_innerHTML(IHTMLElement *iface, BSTR v) static HRESULT WINAPI HTMLElement_put_innerHTML(IHTMLElement *iface, BSTR v)
{ {
HTMLElement *This = impl_from_IHTMLElement(iface); HTMLElement *This = impl_from_IHTMLElement(iface);
nsIDOMNSHTMLElement *nselem;
nsAString html_str; nsAString html_str;
nsresult nsres; nsresult nsres;
...@@ -1029,16 +988,9 @@ static HRESULT WINAPI HTMLElement_put_innerHTML(IHTMLElement *iface, BSTR v) ...@@ -1029,16 +988,9 @@ static HRESULT WINAPI HTMLElement_put_innerHTML(IHTMLElement *iface, BSTR v)
return E_NOTIMPL; return E_NOTIMPL;
} }
nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem);
if(NS_FAILED(nsres)) {
ERR("Could not get nsIDOMNSHTMLElement: %08x\n", nsres);
return E_FAIL;
}
nsAString_InitDepend(&html_str, v); nsAString_InitDepend(&html_str, v);
nsres = nsIDOMNSHTMLElement_SetInnerHTML(nselem, &html_str); nsres = nsIDOMHTMLElement_SetInnerHTML(This->nselem, &html_str);
nsAString_Finish(&html_str); nsAString_Finish(&html_str);
nsIDOMNSHTMLElement_Release(nselem);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
FIXME("SetInnerHtml failed %08x\n", nsres); FIXME("SetInnerHtml failed %08x\n", nsres);
return E_FAIL; return E_FAIL;
...@@ -1050,7 +1002,6 @@ static HRESULT WINAPI HTMLElement_put_innerHTML(IHTMLElement *iface, BSTR v) ...@@ -1050,7 +1002,6 @@ static HRESULT WINAPI HTMLElement_put_innerHTML(IHTMLElement *iface, BSTR v)
static HRESULT WINAPI HTMLElement_get_innerHTML(IHTMLElement *iface, BSTR *p) static HRESULT WINAPI HTMLElement_get_innerHTML(IHTMLElement *iface, BSTR *p)
{ {
HTMLElement *This = impl_from_IHTMLElement(iface); HTMLElement *This = impl_from_IHTMLElement(iface);
nsIDOMNSHTMLElement *nselem;
nsAString html_str; nsAString html_str;
nsresult nsres; nsresult nsres;
...@@ -1061,15 +1012,8 @@ static HRESULT WINAPI HTMLElement_get_innerHTML(IHTMLElement *iface, BSTR *p) ...@@ -1061,15 +1012,8 @@ static HRESULT WINAPI HTMLElement_get_innerHTML(IHTMLElement *iface, BSTR *p)
return E_NOTIMPL; return E_NOTIMPL;
} }
nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem);
if(NS_FAILED(nsres)) {
ERR("Could not get nsIDOMNSHTMLElement: %08x\n", nsres);
return E_FAIL;
}
nsAString_Init(&html_str, NULL); nsAString_Init(&html_str, NULL);
nsres = nsIDOMNSHTMLElement_GetInnerHTML(nselem, &html_str); nsres = nsIDOMHTMLElement_GetInnerHTML(This->nselem, &html_str);
nsIDOMNSHTMLElement_Release(nselem);
if(NS_SUCCEEDED(nsres)) { if(NS_SUCCEEDED(nsres)) {
const PRUnichar *html; const PRUnichar *html;
......
...@@ -634,14 +634,14 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface, ...@@ -634,14 +634,14 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
} }
} }
static nsresult NSAPI nsDocumentObserver_DoneAddingChildren(nsIDocumentObserver *iface, nsIContent *aContent, static void NSAPI nsDocumentObserver_AttemptToExecuteScript(nsIDocumentObserver *iface, nsIContent *aContent,
PRBool aHaveNotified, nsIParser *aParser) nsIParser *aParser, PRBool *aBlock)
{ {
HTMLDocumentNode *This = impl_from_nsIDocumentObserver(iface); HTMLDocumentNode *This = impl_from_nsIDocumentObserver(iface);
nsIDOMHTMLScriptElement *nsscript; nsIDOMHTMLScriptElement *nsscript;
nsresult nsres; nsresult nsres;
TRACE("(%p)->(%p %x)\n", This, aContent, aHaveNotified); TRACE("(%p)->(%p %p %p)\n", This, aContent, aParser, aBlock);
nsres = nsISupports_QueryInterface(aContent, &IID_nsIDOMHTMLScriptElement, (void**)&nsscript); nsres = nsISupports_QueryInterface(aContent, &IID_nsIDOMHTMLScriptElement, (void**)&nsscript);
if(NS_SUCCEEDED(nsres)) { if(NS_SUCCEEDED(nsres)) {
...@@ -650,8 +650,6 @@ static nsresult NSAPI nsDocumentObserver_DoneAddingChildren(nsIDocumentObserver ...@@ -650,8 +650,6 @@ static nsresult NSAPI nsDocumentObserver_DoneAddingChildren(nsIDocumentObserver
add_script_runner(This, run_insert_script, (nsISupports*)nsscript, (nsISupports*)aParser); add_script_runner(This, run_insert_script, (nsISupports*)nsscript, (nsISupports*)aParser);
nsIDOMHTMLScriptElement_Release(nsscript); nsIDOMHTMLScriptElement_Release(nsscript);
} }
return NS_OK;
} }
static const nsIDocumentObserverVtbl nsDocumentObserverVtbl = { static const nsIDocumentObserverVtbl nsDocumentObserverVtbl = {
...@@ -680,7 +678,7 @@ static const nsIDocumentObserverVtbl nsDocumentObserverVtbl = { ...@@ -680,7 +678,7 @@ static const nsIDocumentObserverVtbl nsDocumentObserverVtbl = {
nsDocumentObserver_StyleRuleAdded, nsDocumentObserver_StyleRuleAdded,
nsDocumentObserver_StyleRuleRemoved, nsDocumentObserver_StyleRuleRemoved,
nsDocumentObserver_BindToDocument, nsDocumentObserver_BindToDocument,
nsDocumentObserver_DoneAddingChildren nsDocumentObserver_AttemptToExecuteScript
}; };
void init_document_mutation(HTMLDocumentNode *doc) void init_document_mutation(HTMLDocumentNode *doc)
......
...@@ -1123,6 +1123,27 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen ...@@ -1123,6 +1123,27 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
return nsres; return nsres;
} }
static nsresult NSAPI nsChannel_GetContentDisposition(nsIHttpChannel *iface, PRUint32 *aContentDisposition)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%p)\n", This, aContentDisposition);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsChannel_GetContentDispositionFilename(nsIHttpChannel *iface, nsAString *aContentDispositionFilename)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%p)\n", This, aContentDispositionFilename);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsChannel_GetContentDispositionHeader(nsIHttpChannel *iface, nsACString *aContentDispositionHeader)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
FIXME("(%p)->(%p)\n", This, aContentDispositionHeader);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsChannel_GetRequestMethod(nsIHttpChannel *iface, nsACString *aRequestMethod) static nsresult NSAPI nsChannel_GetRequestMethod(nsIHttpChannel *iface, nsACString *aRequestMethod)
{ {
nsChannel *This = impl_from_nsIHttpChannel(iface); nsChannel *This = impl_from_nsIHttpChannel(iface);
...@@ -1373,6 +1394,9 @@ static const nsIHttpChannelVtbl nsChannelVtbl = { ...@@ -1373,6 +1394,9 @@ static const nsIHttpChannelVtbl nsChannelVtbl = {
nsChannel_SetContentLength, nsChannel_SetContentLength,
nsChannel_Open, nsChannel_Open,
nsChannel_AsyncOpen, nsChannel_AsyncOpen,
nsChannel_GetContentDisposition,
nsChannel_GetContentDispositionFilename,
nsChannel_GetContentDispositionHeader,
nsChannel_GetRequestMethod, nsChannel_GetRequestMethod,
nsChannel_SetRequestMethod, nsChannel_SetRequestMethod,
nsChannel_GetReferrer, nsChannel_GetReferrer,
...@@ -1653,6 +1677,28 @@ static nsresult NSAPI nsHttpChannelInternal_SetCacheKeysRedirectChain(nsIHttpCha ...@@ -1653,6 +1677,28 @@ static nsresult NSAPI nsHttpChannelInternal_SetCacheKeysRedirectChain(nsIHttpCha
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
static nsresult NSAPI nsHttpChannelInternal_HTTPUpgrade(nsIHttpChannelInternal *iface,
const nsACString *aProtocolName, nsIHttpUpgradeListener *aListener)
{
nsChannel *This = impl_from_nsIHttpChannelInternal(iface);
FIXME("(%p)->(%s %p)\n", This, debugstr_nsacstr(aProtocolName), aListener);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsHttpChannelInternal_GetAllowSpdy(nsIHttpChannelInternal *iface, PRBool *aAllowSpdy)
{
nsChannel *This = impl_from_nsIHttpChannelInternal(iface);
FIXME("(%p)->(%p)\n", This, aAllowSpdy);
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsHttpChannelInternal_SetAllowSpdy(nsIHttpChannelInternal *iface, PRBool aAllowSpdy)
{
nsChannel *This = impl_from_nsIHttpChannelInternal(iface);
FIXME("(%p)->(%x)\n", This, aAllowSpdy);
return NS_ERROR_NOT_IMPLEMENTED;
}
static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = { static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = {
nsHttpChannelInternal_QueryInterface, nsHttpChannelInternal_QueryInterface,
nsHttpChannelInternal_AddRef, nsHttpChannelInternal_AddRef,
...@@ -1672,7 +1718,10 @@ static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = { ...@@ -1672,7 +1718,10 @@ static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = {
nsHttpChannelInternal_GetLocalPort, nsHttpChannelInternal_GetLocalPort,
nsHttpChannelInternal_GetRemoteAddress, nsHttpChannelInternal_GetRemoteAddress,
nsHttpChannelInternal_GetRemotePort, nsHttpChannelInternal_GetRemotePort,
nsHttpChannelInternal_SetCacheKeysRedirectChain nsHttpChannelInternal_SetCacheKeysRedirectChain,
nsHttpChannelInternal_HTTPUpgrade,
nsHttpChannelInternal_GetAllowSpdy,
nsHttpChannelInternal_SetAllowSpdy
}; };
...@@ -2492,27 +2541,6 @@ static nsresult NSAPI nsURL_SetFilePath(nsIURL *iface, const nsACString *aFilePa ...@@ -2492,27 +2541,6 @@ static nsresult NSAPI nsURL_SetFilePath(nsIURL *iface, const nsACString *aFilePa
return nsIURL_SetPath(&This->nsIURL_iface, aFilePath); return nsIURL_SetPath(&This->nsIURL_iface, aFilePath);
} }
static nsresult NSAPI nsURL_GetParam(nsIURL *iface, nsACString *aParam)
{
nsWineURI *This = impl_from_nsIURL(iface);
WARN("(%p)->(%p)\n", This, aParam);
/* This is a leftover of ';' special handling in URLs. It will be removed from Gecko soon */
nsACString_SetData(aParam, "");
return NS_OK;
}
static nsresult NSAPI nsURL_SetParam(nsIURL *iface, const nsACString *aParam)
{
nsWineURI *This = impl_from_nsIURL(iface);
WARN("(%p)->(%s)\n", This, debugstr_nsacstr(aParam));
/* Not implemented by Gecko */
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsURL_GetQuery(nsIURL *iface, nsACString *aQuery) static nsresult NSAPI nsURL_GetQuery(nsIURL *iface, nsACString *aQuery)
{ {
nsWineURI *This = impl_from_nsIURL(iface); nsWineURI *This = impl_from_nsIURL(iface);
...@@ -2720,8 +2748,6 @@ static const nsIURLVtbl nsURLVtbl = { ...@@ -2720,8 +2748,6 @@ static const nsIURLVtbl nsURLVtbl = {
nsURI_GetHasRef, nsURI_GetHasRef,
nsURL_GetFilePath, nsURL_GetFilePath,
nsURL_SetFilePath, nsURL_SetFilePath,
nsURL_GetParam,
nsURL_SetParam,
nsURL_GetQuery, nsURL_GetQuery,
nsURL_SetQuery, nsURL_SetQuery,
nsURL_GetDirectory, nsURL_GetDirectory,
......
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