Commit 3f79f129 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Move init_editor to HTMLDocumentNode.

parent 496abd05
......@@ -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)
......
......@@ -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;
......
......@@ -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)
......
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