mshtml: Get rid of handle_edit_load.

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:41 +01:00 committed by Alexandre Julliard
parent 34c84fd1a0
commit 496abd052e
4 changed files with 3 additions and 9 deletions

View File

@ -488,11 +488,6 @@ void handle_edit_event(HTMLDocumentNode *doc, nsIDOMEvent *event)
nsIDOMKeyEvent_Release(key_event);
}
void handle_edit_load(HTMLDocument *This)
{
get_editor_controller(This->doc_obj->nscontainer);
}
static void set_ns_fontname(HTMLDocumentNode *doc, const char *fontname)
{
nsICommandParams *nsparam = create_nscommand_params();

View File

@ -962,7 +962,7 @@ HRESULT return_nsform(nsresult,nsIDOMHTMLFormElement*,IHTMLFormElement**) DECLSP
nsICommandParams *create_nscommand_params(void) DECLSPEC_HIDDEN;
HRESULT nsnode_to_nsstring(nsIDOMNode*,nsAString*) DECLSPEC_HIDDEN;
void get_editor_controller(GeckoBrowser*) DECLSPEC_HIDDEN;
void setup_editor_controller(GeckoBrowser*) DECLSPEC_HIDDEN;
nsresult get_nsinterface(nsISupports*,REFIID,void**) DECLSPEC_HIDDEN;
nsIWritableVariant *create_nsvariant(void) DECLSPEC_HIDDEN;
nsIXMLHttpRequest *create_nsxhr(nsIDOMWindow *nswindow) DECLSPEC_HIDDEN;
@ -1140,7 +1140,6 @@ 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;
HRESULT editor_exec_paste(HTMLDocumentNode*,DWORD,VARIANT*,VARIANT*) DECLSPEC_HIDDEN;
void handle_edit_load(HTMLDocument*) DECLSPEC_HIDDEN;
HRESULT browser_is_dirty(GeckoBrowser*) DECLSPEC_HIDDEN;
void set_dirty(GeckoBrowser*,VARIANT_BOOL) DECLSPEC_HIDDEN;

View File

@ -1068,7 +1068,7 @@ HRESULT nsnode_to_nsstring(nsIDOMNode *nsnode, nsAString *str)
return hres;
}
void get_editor_controller(GeckoBrowser *This)
void setup_editor_controller(GeckoBrowser *This)
{
nsIEditingSession *editing_session = NULL;
nsIControllerContext *ctrlctx;

View File

@ -197,7 +197,7 @@ static void handle_docobj_load(HTMLDocumentObj *doc)
}
if(doc->nscontainer->usermode == EDITMODE)
handle_edit_load(&doc->basedoc);
setup_editor_controller(doc->nscontainer);
if(doc->client) {
hres = IOleClientSite_QueryInterface(doc->client, &IID_IOleCommandTarget, (void**)&olecmd);