mshtml: Moved hostinfo to HTMLDocumentObj.
This commit is contained in:
parent
fffc8c66fd
commit
e1aa05b13e
|
@ -289,8 +289,6 @@ struct HTMLDocument {
|
||||||
LPOLESTR url;
|
LPOLESTR url;
|
||||||
struct list bindings;
|
struct list bindings;
|
||||||
|
|
||||||
DOCHOSTUIINFO hostinfo;
|
|
||||||
|
|
||||||
USERMODE usermode;
|
USERMODE usermode;
|
||||||
READYSTATE readystate;
|
READYSTATE readystate;
|
||||||
BOOL in_place_active;
|
BOOL in_place_active;
|
||||||
|
@ -350,6 +348,8 @@ struct HTMLDocumentObj {
|
||||||
IOleInPlaceFrame *frame;
|
IOleInPlaceFrame *frame;
|
||||||
IOleInPlaceUIWindow *ip_window;
|
IOleInPlaceUIWindow *ip_window;
|
||||||
|
|
||||||
|
DOCHOSTUIINFO hostinfo;
|
||||||
|
|
||||||
IOleUndoManager *undomgr;
|
IOleUndoManager *undomgr;
|
||||||
|
|
||||||
HWND hwnd;
|
HWND hwnd;
|
||||||
|
|
|
@ -111,7 +111,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
|
||||||
This->doc_obj->hostui = NULL;
|
This->doc_obj->hostui = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&This->hostinfo, 0, sizeof(DOCHOSTUIINFO));
|
memset(&This->doc_obj->hostinfo, 0, sizeof(DOCHOSTUIINFO));
|
||||||
|
|
||||||
if(!pClientSite)
|
if(!pClientSite)
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
@ -130,7 +130,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
|
||||||
hostinfo.cbSize, hostinfo.dwFlags, hostinfo.dwDoubleClick,
|
hostinfo.cbSize, hostinfo.dwFlags, hostinfo.dwDoubleClick,
|
||||||
debugstr_w(hostinfo.pchHostCss), debugstr_w(hostinfo.pchHostNS));
|
debugstr_w(hostinfo.pchHostCss), debugstr_w(hostinfo.pchHostNS));
|
||||||
update_hostinfo(This->doc_obj, &hostinfo);
|
update_hostinfo(This->doc_obj, &hostinfo);
|
||||||
This->hostinfo = hostinfo;
|
This->doc_obj->hostinfo = hostinfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!This->has_key_path) {
|
if(!This->has_key_path) {
|
||||||
|
|
|
@ -60,7 +60,7 @@ static void paint_document(HTMLDocumentObj *This)
|
||||||
|
|
||||||
hdc = BeginPaint(This->hwnd, &ps);
|
hdc = BeginPaint(This->hwnd, &ps);
|
||||||
|
|
||||||
if(!(This->basedoc.hostinfo.dwFlags & (DOCHOSTUIFLAG_NO3DOUTERBORDER|DOCHOSTUIFLAG_NO3DBORDER)))
|
if(!(This->hostinfo.dwFlags & (DOCHOSTUIFLAG_NO3DOUTERBORDER|DOCHOSTUIFLAG_NO3DBORDER)))
|
||||||
DrawEdge(hdc, &rect, EDGE_SUNKEN, BF_RECT|BF_ADJUST);
|
DrawEdge(hdc, &rect, EDGE_SUNKEN, BF_RECT|BF_ADJUST);
|
||||||
|
|
||||||
if(!This->nscontainer) {
|
if(!This->nscontainer) {
|
||||||
|
@ -204,7 +204,7 @@ static LRESULT WINAPI serverwnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
|
||||||
if(This->nscontainer) {
|
if(This->nscontainer) {
|
||||||
INT ew=0, eh=0;
|
INT ew=0, eh=0;
|
||||||
|
|
||||||
if(!(This->basedoc.hostinfo.dwFlags & (DOCHOSTUIFLAG_NO3DOUTERBORDER|DOCHOSTUIFLAG_NO3DBORDER))) {
|
if(!(This->hostinfo.dwFlags & (DOCHOSTUIFLAG_NO3DOUTERBORDER|DOCHOSTUIFLAG_NO3DBORDER))) {
|
||||||
ew = GetSystemMetrics(SM_CXEDGE);
|
ew = GetSystemMetrics(SM_CXEDGE);
|
||||||
eh = GetSystemMetrics(SM_CYEDGE);
|
eh = GetSystemMetrics(SM_CYEDGE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue