mshtml: Initialize HTMLTxtRange object with compat mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8de773d9f2
commit
8b0f1721bb
|
@ -1729,7 +1729,8 @@ HRESULT HTMLTxtRange_Create(HTMLDocumentNode *doc, nsIDOMRange *nsrange, IHTMLTx
|
||||||
if(!ret)
|
if(!ret)
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
|
||||||
init_dispex(&ret->dispex, (IUnknown*)&ret->IHTMLTxtRange_iface, &HTMLTxtRange_dispex);
|
init_dispex_with_compat_mode(&ret->dispex, (IUnknown*)&ret->IHTMLTxtRange_iface, &HTMLTxtRange_dispex,
|
||||||
|
dispex_compat_mode(&doc->node.event_target.dispex));
|
||||||
|
|
||||||
ret->IHTMLTxtRange_iface.lpVtbl = &HTMLTxtRangeVtbl;
|
ret->IHTMLTxtRange_iface.lpVtbl = &HTMLTxtRangeVtbl;
|
||||||
ret->IOleCommandTarget_iface.lpVtbl = &OleCommandTargetVtbl;
|
ret->IOleCommandTarget_iface.lpVtbl = &OleCommandTargetVtbl;
|
||||||
|
|
Loading…
Reference in New Issue