mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:31:39 +00:00
mshtml: Implement MarkupServices_CreateMarkupContainer.
This commit is contained in:
parent
e2100e3f1e
commit
f9a8f2f1a3
|
@ -4739,8 +4739,18 @@ static HRESULT WINAPI MarkupServices_CreateMarkupPointer(IMarkupServices *iface,
|
|||
static HRESULT WINAPI MarkupServices_CreateMarkupContainer(IMarkupServices *iface, IMarkupContainer **ppMarkupContainer)
|
||||
{
|
||||
HTMLDocumentNode *This = impl_from_IMarkupServices(iface);
|
||||
FIXME("(%p)->(%p)\n", This, ppMarkupContainer);
|
||||
return E_NOTIMPL;
|
||||
IHTMLDocument2 *frag;
|
||||
HRESULT hres;
|
||||
TRACE("(%p)->(%p)\n", This, ppMarkupContainer);
|
||||
|
||||
hres = IHTMLDocument3_createDocumentFragment(&This->IHTMLDocument3_iface, &frag);
|
||||
if(FAILED(hres))
|
||||
return hres;
|
||||
|
||||
IHTMLDocument2_QueryInterface(frag, &IID_IMarkupContainer, (void**)ppMarkupContainer);
|
||||
IHTMLDocument2_Release(frag);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI MarkupServices_CreateElement(IMarkupServices *iface,
|
||||
|
|
|
@ -8384,8 +8384,8 @@ static void test_MarkupContainer(IMarkupServices *markup_services)
|
|||
HRESULT hres;
|
||||
|
||||
hres = IMarkupServices_CreateMarkupContainer(markup_services, &container);
|
||||
todo_wine ok(hres == S_OK, "got 0x%08lx\n", hres);
|
||||
todo_wine ok(container != NULL, "MarkupContainer is null.\n");
|
||||
ok(hres == S_OK, "got 0x%08lx\n", hres);
|
||||
ok(container != NULL, "MarkupContainer is null.\n");
|
||||
if (!container) return;
|
||||
|
||||
hres = IMarkupContainer_QueryInterface(container, &IID_IHTMLDocument2, (void**)&markup_container_doc);
|
||||
|
|
Loading…
Reference in a new issue