mshtml: Fixed query_edit_status when Gecko is not available.
This commit is contained in:
parent
1e85e7c7c2
commit
53fe2d1531
|
@ -307,18 +307,15 @@ static DWORD query_edit_status(HTMLDocument *This, const char *nscmd)
|
||||||
nsICommandParams *nsparam;
|
nsICommandParams *nsparam;
|
||||||
PRBool b = FALSE;
|
PRBool b = FALSE;
|
||||||
|
|
||||||
if(!This->nscontainer) {
|
|
||||||
FIXME("dummy not implemented\n");
|
|
||||||
return OLECMDF_SUPPORTED;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(This->usermode != EDITMODE || This->readystate < READYSTATE_INTERACTIVE)
|
if(This->usermode != EDITMODE || This->readystate < READYSTATE_INTERACTIVE)
|
||||||
return OLECMDF_SUPPORTED;
|
return OLECMDF_SUPPORTED;
|
||||||
|
|
||||||
nsparam = create_nscommand_params();
|
if(This->nscontainer) {
|
||||||
get_ns_command_state(This->nscontainer, nscmd, nsparam);
|
nsparam = create_nscommand_params();
|
||||||
|
get_ns_command_state(This->nscontainer, nscmd, nsparam);
|
||||||
|
|
||||||
nsICommandParams_GetBooleanValue(nsparam, "state_enabled", &b);
|
nsICommandParams_GetBooleanValue(nsparam, "state_all", &b);
|
||||||
|
}
|
||||||
|
|
||||||
return OLECMDF_SUPPORTED | OLECMDF_ENABLED | (b ? OLECMDF_LATCHED : 0);
|
return OLECMDF_SUPPORTED | OLECMDF_ENABLED | (b ? OLECMDF_LATCHED : 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue