mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Adding sizing feature to the plugin API. Reviewed by Nisheeth.
This commit is contained in:
parent
fb49032bbb
commit
0c1a191dbb
@ -1623,7 +1623,15 @@ npn_setvalue(NPP npp, NPPVariable variable, void *r_value)
|
||||
break;
|
||||
|
||||
case NPPVpluginWindowSize:
|
||||
{
|
||||
NPSize * pnpsz = (NPSize *)r_value;
|
||||
np_data * ndata = (np_data *)instance->app->np_data;
|
||||
LO_EmbedStruct * pes = ndata->lo_struct;
|
||||
|
||||
LO_SetEmbedSize(instance->cx, pes, pnpsz->width, pnpsz->height);
|
||||
LO_RelayoutFromElement(instance->cx, (LO_Element *)pes);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user