mshtml: Move init_editor to HTMLDocumentNode.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-03-12 16:11:58 +01:00 committed by Alexandre Julliard
parent 496abd052e
commit 3f79f129ff
3 changed files with 5 additions and 5 deletions

View File

@ -1181,11 +1181,11 @@ const cmdtable_t editmode_cmds[] = {
{0,NULL,NULL}
};
void init_editor(HTMLDocument *This)
void init_editor(HTMLDocumentNode *doc)
{
update_doc(This->doc_obj, UPDATE_UI);
update_doc(doc->browser->doc, UPDATE_UI);
set_ns_fontname(This->doc_node, "Times New Roman");
set_ns_fontname(doc, "Times New Roman");
}
HRESULT browser_is_dirty(GeckoBrowser *browser)

View File

@ -1135,7 +1135,7 @@ HRESULT do_query_service(IUnknown*,REFGUID,REFIID,void**) DECLSPEC_HIDDEN;
/* editor */
HRESULT setup_edit_mode(HTMLDocumentObj*) DECLSPEC_HIDDEN;
void init_editor(HTMLDocument*) DECLSPEC_HIDDEN;
void init_editor(HTMLDocumentNode*) DECLSPEC_HIDDEN;
void handle_edit_event(HTMLDocumentNode*,nsIDOMEvent*) DECLSPEC_HIDDEN;
HRESULT editor_exec_copy(HTMLDocumentNode*,DWORD,VARIANT*,VARIANT*) DECLSPEC_HIDDEN;
HRESULT editor_exec_cut(HTMLDocumentNode*,DWORD,VARIANT*,VARIANT*) DECLSPEC_HIDDEN;

View File

@ -263,7 +263,7 @@ static void parse_complete(HTMLDocumentObj *doc)
TRACE("(%p)\n", doc);
if(doc->nscontainer->usermode == EDITMODE)
init_editor(&doc->basedoc);
init_editor(doc->basedoc.doc_node);
call_explorer_69(doc);
if(doc->view_sink)