Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
07bf1d73
Commit
07bf1d73
authored
Oct 17, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Oct 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Move the Persist interfaces out of basedoc.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
ac56d24e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
25 deletions
+47
-25
binding.h
dlls/mshtml/binding.h
+1
-1
editor.c
dlls/mshtml/editor.c
+1
-1
htmldoc.c
dlls/mshtml/htmldoc.c
+30
-15
mshtml_private.h
dlls/mshtml/mshtml_private.h
+14
-7
navigate.c
dlls/mshtml/navigate.c
+1
-1
persist.c
dlls/mshtml/persist.c
+0
-0
No files found.
dlls/mshtml/binding.h
View file @
07bf1d73
...
...
@@ -144,7 +144,7 @@ HRESULT hlink_frame_navigate(HTMLDocument*,LPCWSTR,nsChannel*,DWORD,BOOL*) DECLS
HRESULT
create_doc_uri
(
IUri
*
,
nsWineURI
**
)
DECLSPEC_HIDDEN
;
HRESULT
load_nsuri
(
HTMLOuterWindow
*
,
nsWineURI
*
,
nsIInputStream
*
,
nsChannelBSC
*
,
DWORD
)
DECLSPEC_HIDDEN
;
HRESULT
set_moniker
(
HTMLOuterWindow
*
,
IMoniker
*
,
IUri
*
,
IBindCtx
*
,
nsChannelBSC
*
,
BOOL
)
DECLSPEC_HIDDEN
;
void
prepare_for_binding
(
HTMLDocument
*
,
IMoniker
*
,
DWORD
)
DECLSPEC_HIDDEN
;
void
prepare_for_binding
(
HTMLDocument
Obj
*
,
IMoniker
*
,
DWORD
)
DECLSPEC_HIDDEN
;
HRESULT
super_navigate
(
HTMLOuterWindow
*
,
IUri
*
,
DWORD
,
const
WCHAR
*
,
BYTE
*
,
DWORD
)
DECLSPEC_HIDDEN
;
HRESULT
load_uri
(
HTMLOuterWindow
*
,
IUri
*
,
DWORD
)
DECLSPEC_HIDDEN
;
HRESULT
navigate_new_window
(
HTMLOuterWindow
*
,
IUri
*
,
const
WCHAR
*
,
request_data_t
*
,
IHTMLWindow2
**
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/editor.c
View file @
07bf1d73
...
...
@@ -1249,7 +1249,7 @@ HRESULT setup_edit_mode(HTMLDocumentObj *doc)
}
}
hres
=
IPersistMoniker_Load
(
&
doc
->
basedoc
.
IPersistMoniker_iface
,
TRUE
,
mon
,
NULL
,
0
);
hres
=
IPersistMoniker_Load
(
&
doc
->
IPersistMoniker_iface
,
TRUE
,
mon
,
NULL
,
0
);
IMoniker_Release
(
mon
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/mshtml/htmldoc.c
View file @
07bf1d73
...
...
@@ -5613,14 +5613,6 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
*
ppv
=
&
This
->
IDocumentSelector_iface
;
else
if
(
IsEqualGUID
(
&
IID_IDocumentEvent
,
riid
))
*
ppv
=
&
This
->
IDocumentEvent_iface
;
else
if
(
IsEqualGUID
(
&
IID_IPersist
,
riid
))
*
ppv
=
&
This
->
IPersistFile_iface
;
else
if
(
IsEqualGUID
(
&
IID_IPersistMoniker
,
riid
))
*
ppv
=
&
This
->
IPersistMoniker_iface
;
else
if
(
IsEqualGUID
(
&
IID_IPersistFile
,
riid
))
*
ppv
=
&
This
->
IPersistFile_iface
;
else
if
(
IsEqualGUID
(
&
IID_IMonikerProp
,
riid
))
*
ppv
=
&
This
->
IMonikerProp_iface
;
else
if
(
IsEqualGUID
(
&
IID_IOleObject
,
riid
))
*
ppv
=
&
This
->
IOleObject_iface
;
else
if
(
IsEqualGUID
(
&
IID_IOleDocument
,
riid
))
...
...
@@ -5637,16 +5629,10 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
*
ppv
=
&
This
->
IOleCommandTarget_iface
;
else
if
(
IsEqualGUID
(
&
IID_IOleControl
,
riid
))
*
ppv
=
&
This
->
IOleControl_iface
;
else
if
(
IsEqualGUID
(
&
IID_IHlinkTarget
,
riid
))
*
ppv
=
&
This
->
IHlinkTarget_iface
;
else
if
(
IsEqualGUID
(
&
IID_IPersistStreamInit
,
riid
))
*
ppv
=
&
This
->
IPersistStreamInit_iface
;
else
if
(
IsEqualGUID
(
&
DIID_DispHTMLDocument
,
riid
))
*
ppv
=
&
This
->
IHTMLDocument2_iface
;
else
if
(
IsEqualGUID
(
&
IID_ISupportErrorInfo
,
riid
))
*
ppv
=
&
This
->
ISupportErrorInfo_iface
;
else
if
(
IsEqualGUID
(
&
IID_IPersistHistory
,
riid
))
*
ppv
=
&
This
->
IPersistHistory_iface
;
else
if
(
IsEqualGUID
(
&
IID_IObjectWithSite
,
riid
))
*
ppv
=
&
This
->
IObjectWithSite_iface
;
else
if
(
IsEqualGUID
(
&
IID_IOleContainer
,
riid
))
...
...
@@ -5723,7 +5709,6 @@ static void init_doc(HTMLDocument *doc, IUnknown *outer, IDispatchEx *dispex)
doc
->
outer_unk
=
outer
;
doc
->
dispex
=
dispex
;
HTMLDocument_Persist_Init
(
doc
);
HTMLDocument_OleCmd_Init
(
doc
);
HTMLDocument_OleObj_Init
(
doc
);
}
...
...
@@ -5744,6 +5729,20 @@ static HRESULT HTMLDocumentNode_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
if
(
IsEqualGUID
(
&
IID_IInternetHostSecurityManager
,
riid
))
*
ppv
=
&
This
->
IInternetHostSecurityManager_iface
;
else
if
(
IsEqualGUID
(
&
IID_IPersist
,
riid
))
*
ppv
=
&
This
->
IPersistFile_iface
;
else
if
(
IsEqualGUID
(
&
IID_IPersistMoniker
,
riid
))
*
ppv
=
&
This
->
IPersistMoniker_iface
;
else
if
(
IsEqualGUID
(
&
IID_IPersistFile
,
riid
))
*
ppv
=
&
This
->
IPersistFile_iface
;
else
if
(
IsEqualGUID
(
&
IID_IMonikerProp
,
riid
))
*
ppv
=
&
This
->
IMonikerProp_iface
;
else
if
(
IsEqualGUID
(
&
IID_IPersistStreamInit
,
riid
))
*
ppv
=
&
This
->
IPersistStreamInit_iface
;
else
if
(
IsEqualGUID
(
&
IID_IPersistHistory
,
riid
))
*
ppv
=
&
This
->
IPersistHistory_iface
;
else
if
(
IsEqualGUID
(
&
IID_IHlinkTarget
,
riid
))
*
ppv
=
&
This
->
IHlinkTarget_iface
;
else
if
(
IsEqualGUID
(
&
IID_IServiceProvider
,
riid
))
*
ppv
=
&
This
->
IServiceProvider_iface
;
else
if
(
IsEqualGUID
(
&
IID_IConnectionPointContainer
,
riid
))
...
...
@@ -6135,6 +6134,7 @@ static HTMLDocumentNode *alloc_doc_node(HTMLDocumentObj *doc_obj, HTMLInnerWindo
init_doc
(
&
doc
->
basedoc
,
(
IUnknown
*
)
&
doc
->
node
.
IHTMLDOMNode_iface
,
&
doc
->
node
.
event_target
.
dispex
.
IDispatchEx_iface
);
ConnectionPointContainer_Init
(
&
doc
->
cp_container
,
(
IUnknown
*
)
&
doc
->
basedoc
.
IHTMLDocument2_iface
,
HTMLDocumentNode_cpc
);
HTMLDocumentNode_Persist_Init
(
doc
);
HTMLDocumentNode_Service_Init
(
doc
);
HTMLDocumentNode_SecMgr_Init
(
doc
);
...
...
@@ -6254,6 +6254,20 @@ static HRESULT WINAPI HTMLDocumentObj_QueryInterface(IUnknown *iface, REFIID rii
*
ppv
=
&
This
->
IViewObjectEx_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IViewObjectEx
,
riid
))
{
*
ppv
=
&
This
->
IViewObjectEx_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IPersist
,
riid
))
{
*
ppv
=
&
This
->
IPersistFile_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IPersistMoniker
,
riid
))
{
*
ppv
=
&
This
->
IPersistMoniker_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IPersistFile
,
riid
))
{
*
ppv
=
&
This
->
IPersistFile_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IMonikerProp
,
riid
))
{
*
ppv
=
&
This
->
IMonikerProp_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IPersistStreamInit
,
riid
))
{
*
ppv
=
&
This
->
IPersistStreamInit_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IPersistHistory
,
riid
))
{
*
ppv
=
&
This
->
IPersistHistory_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHlinkTarget
,
riid
))
{
*
ppv
=
&
This
->
IHlinkTarget_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IServiceProvider
,
riid
))
{
*
ppv
=
&
This
->
IServiceProvider_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_ITargetContainer
,
riid
))
{
...
...
@@ -6482,6 +6496,7 @@ static HRESULT create_document_object(BOOL is_mhtml, IUnknown *outer, REFIID rii
init_dispatch
(
&
doc
->
dispex
,
(
IUnknown
*
)
&
doc
->
ICustomDoc_iface
,
&
HTMLDocumentObj_dispex
,
COMPAT_MODE_QUIRKS
);
init_doc
(
&
doc
->
basedoc
,
outer
?
outer
:
&
doc
->
IUnknown_inner
,
&
doc
->
dispex
.
IDispatchEx_iface
);
ConnectionPointContainer_Init
(
&
doc
->
cp_container
,
&
doc
->
IUnknown_inner
,
HTMLDocumentObj_cpc
);
HTMLDocumentObj_Persist_Init
(
doc
);
HTMLDocumentObj_Service_Init
(
doc
);
TargetContainer_Init
(
doc
);
doc
->
is_mhtml
=
is_mhtml
;
...
...
dlls/mshtml/mshtml_private.h
View file @
07bf1d73
...
...
@@ -648,18 +648,12 @@ struct HTMLDocument {
IHTMLDocument7
IHTMLDocument7_iface
;
IDocumentSelector
IDocumentSelector_iface
;
IDocumentEvent
IDocumentEvent_iface
;
IPersistMoniker
IPersistMoniker_iface
;
IPersistFile
IPersistFile_iface
;
IPersistHistory
IPersistHistory_iface
;
IMonikerProp
IMonikerProp_iface
;
IOleObject
IOleObject_iface
;
IOleDocument
IOleDocument_iface
;
IOleInPlaceActiveObject
IOleInPlaceActiveObject_iface
;
IOleInPlaceObjectWindowless
IOleInPlaceObjectWindowless_iface
;
IOleCommandTarget
IOleCommandTarget_iface
;
IOleControl
IOleControl_iface
;
IHlinkTarget
IHlinkTarget_iface
;
IPersistStreamInit
IPersistStreamInit_iface
;
IDispatchEx
IDispatchEx_iface
;
ISupportErrorInfo
ISupportErrorInfo_iface
;
IObjectWithSite
IObjectWithSite_iface
;
...
...
@@ -702,6 +696,12 @@ struct HTMLDocumentObj {
ICustomDoc
ICustomDoc_iface
;
IOleDocumentView
IOleDocumentView_iface
;
IViewObjectEx
IViewObjectEx_iface
;
IPersistMoniker
IPersistMoniker_iface
;
IPersistFile
IPersistFile_iface
;
IMonikerProp
IMonikerProp_iface
;
IPersistStreamInit
IPersistStreamInit_iface
;
IPersistHistory
IPersistHistory_iface
;
IHlinkTarget
IHlinkTarget_iface
;
IServiceProvider
IServiceProvider_iface
;
ITargetContainer
ITargetContainer_iface
;
...
...
@@ -896,6 +896,12 @@ struct HTMLDocumentNode {
HTMLDOMNode
node
;
HTMLDocument
basedoc
;
IPersistMoniker
IPersistMoniker_iface
;
IPersistFile
IPersistFile_iface
;
IMonikerProp
IMonikerProp_iface
;
IPersistStreamInit
IPersistStreamInit_iface
;
IPersistHistory
IPersistHistory_iface
;
IHlinkTarget
IHlinkTarget_iface
;
IServiceProvider
IServiceProvider_iface
;
IInternetHostSecurityManager
IInternetHostSecurityManager_iface
;
...
...
@@ -963,14 +969,15 @@ void detach_dom_implementation(IHTMLDOMImplementation*) DECLSPEC_HIDDEN;
HRESULT
create_html_storage
(
HTMLInnerWindow
*
,
BOOL
,
IHTMLStorage
**
)
DECLSPEC_HIDDEN
;
void
detach_html_storage
(
IHTMLStorage
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocument_Persist_Init
(
HTMLDocument
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocument_OleCmd_Init
(
HTMLDocument
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocument_OleObj_Init
(
HTMLDocument
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocument_View_Init
(
HTMLDocumentObj
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocumentObj_Persist_Init
(
HTMLDocumentObj
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocumentObj_Service_Init
(
HTMLDocumentObj
*
)
DECLSPEC_HIDDEN
;
void
TargetContainer_Init
(
HTMLDocumentObj
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocumentNode_Persist_Init
(
HTMLDocumentNode
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocumentNode_Service_Init
(
HTMLDocumentNode
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocumentNode_SecMgr_Init
(
HTMLDocumentNode
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/navigate.c
View file @
07bf1d73
...
...
@@ -2236,7 +2236,7 @@ HRESULT super_navigate(HTMLOuterWindow *window, IUri *uri, DWORD flags, const WC
return
hres
;
}
prepare_for_binding
(
&
window
->
browser
->
doc
->
base
doc
,
mon
,
flags
);
prepare_for_binding
(
window
->
browser
->
doc
,
mon
,
flags
);
hres
=
IUri_GetScheme
(
uri
,
&
scheme
);
if
(
hres
==
S_OK
&&
scheme
==
URL_SCHEME_JAVASCRIPT
)
{
...
...
dlls/mshtml/persist.c
View file @
07bf1d73
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment