Commit 501e680e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Call pop_mutation_queue in MUTATION_IFRAME handler.

parent c593173d
...@@ -340,7 +340,8 @@ static nsresult NSAPI nsRunnable_Run(nsIRunnable *iface) ...@@ -340,7 +340,8 @@ static nsresult NSAPI nsRunnable_Run(nsIRunnable *iface)
} }
case MUTATION_IFRAME: case MUTATION_IFRAME:
return init_iframe_window(This, This->mutation_queue->nsiface); init_iframe_window(This, This->mutation_queue->nsiface);
break;
case MUTATION_SCRIPT: { case MUTATION_SCRIPT: {
nsIDOMHTMLScriptElement *nsscript; nsIDOMHTMLScriptElement *nsscript;
...@@ -577,6 +578,8 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface, ...@@ -577,6 +578,8 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
nsres = nsISupports_QueryInterface(aContent, &IID_nsIDOMHTMLIFrameElement, (void**)&nsiframe); nsres = nsISupports_QueryInterface(aContent, &IID_nsIDOMHTMLIFrameElement, (void**)&nsiframe);
if(NS_SUCCEEDED(nsres)) { if(NS_SUCCEEDED(nsres)) {
TRACE("iframe node\n");
push_mutation_queue(This, MUTATION_IFRAME, (nsISupports*)nsiframe); push_mutation_queue(This, MUTATION_IFRAME, (nsISupports*)nsiframe);
nsIDOMHTMLIFrameElement_Release(nsiframe); nsIDOMHTMLIFrameElement_Release(nsiframe);
add_script_runner(This); add_script_runner(This);
...@@ -594,6 +597,8 @@ static void NSAPI nsDocumentObserver_DoneAddingChildren(nsIDocumentObserver *ifa ...@@ -594,6 +597,8 @@ static void NSAPI nsDocumentObserver_DoneAddingChildren(nsIDocumentObserver *ifa
nsres = nsISupports_QueryInterface(aContent, &IID_nsIDOMHTMLScriptElement, (void**)&nsscript); nsres = nsISupports_QueryInterface(aContent, &IID_nsIDOMHTMLScriptElement, (void**)&nsscript);
if(NS_SUCCEEDED(nsres)) { if(NS_SUCCEEDED(nsres)) {
TRACE("script node\n");
push_mutation_queue(This, MUTATION_SCRIPT, (nsISupports*)nsscript); push_mutation_queue(This, MUTATION_SCRIPT, (nsISupports*)nsscript);
nsIDOMHTMLScriptElement_Release(nsscript); nsIDOMHTMLScriptElement_Release(nsscript);
add_script_runner(This); add_script_runner(This);
......
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