Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
833a7a62
Commit
833a7a62
authored
Oct 24, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Oct 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Move the IHTMLDocument3 interface out of basedoc.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
eaaae516
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
116 additions
and
3 deletions
+116
-3
htmldoc.c
dlls/mshtml/htmldoc.c
+0
-0
htmlwindow.c
dlls/mshtml/htmlwindow.c
+2
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-1
oleobj.c
dlls/mshtml/oleobj.c
+112
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
833a7a62
This diff is collapsed.
Click to expand it.
dlls/mshtml/htmlwindow.c
View file @
833a7a62
...
...
@@ -3607,7 +3607,7 @@ static HRESULT WINAPI WindowDispEx_GetDispID(IDispatchEx *iface, BSTR bstrName,
global_prop_t
*
prop
;
IHTMLElement
*
elem
;
hres
=
IHTMLDocument3_getElementById
(
&
window
->
base
.
inner_window
->
doc
->
basedoc
.
IHTMLDocument3_iface
,
hres
=
IHTMLDocument3_getElementById
(
&
window
->
base
.
inner_window
->
doc
->
IHTMLDocument3_iface
,
bstrName
,
&
elem
);
if
(
SUCCEEDED
(
hres
)
&&
elem
)
{
IHTMLElement_Release
(
elem
);
...
...
@@ -3813,7 +3813,7 @@ static HRESULT HTMLWindow_invoke(DispatchEx *dispex, DISPID id, LCID lcid, WORD
case
DISPATCH_PROPERTYGET
:
{
IHTMLElement
*
elem
;
hres
=
IHTMLDocument3_getElementById
(
&
This
->
base
.
inner_window
->
doc
->
basedoc
.
IHTMLDocument3_iface
,
hres
=
IHTMLDocument3_getElementById
(
&
This
->
base
.
inner_window
->
doc
->
IHTMLDocument3_iface
,
prop
->
name
,
&
elem
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/mshtml/mshtml_private.h
View file @
833a7a62
...
...
@@ -640,7 +640,6 @@ struct ConnectionPoint {
};
struct
HTMLDocument
{
IHTMLDocument3
IHTMLDocument3_iface
;
IHTMLDocument4
IHTMLDocument4_iface
;
IHTMLDocument5
IHTMLDocument5_iface
;
IHTMLDocument6
IHTMLDocument6_iface
;
...
...
@@ -680,6 +679,7 @@ struct HTMLDocumentObj {
IUnknown
IUnknown_inner
;
ICustomDoc
ICustomDoc_iface
;
IHTMLDocument2
IHTMLDocument2_iface
;
IHTMLDocument3
IHTMLDocument3_iface
;
IDocumentSelector
IDocumentSelector_iface
;
IDocumentEvent
IDocumentEvent_iface
;
ISupportErrorInfo
ISupportErrorInfo_iface
;
...
...
@@ -900,6 +900,7 @@ struct HTMLDocumentNode {
HTMLDocument
basedoc
;
IHTMLDocument2
IHTMLDocument2_iface
;
IHTMLDocument3
IHTMLDocument3_iface
;
IDocumentSelector
IDocumentSelector_iface
;
IDocumentEvent
IDocumentEvent_iface
;
ISupportErrorInfo
ISupportErrorInfo_iface
;
...
...
dlls/mshtml/oleobj.c
View file @
833a7a62
...
...
@@ -2516,6 +2516,115 @@ static const IHTMLDocument2Vtbl DocObjHTMLDocument2Vtbl = {
};
/**********************************************************
* IHTMLDocument3 implementation
*/
static
inline
HTMLDocumentObj
*
impl_from_IHTMLDocument3
(
IHTMLDocument3
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLDocumentObj
,
IHTMLDocument3_iface
);
}
HTMLDOCUMENTOBJ_IDISPATCH_METHODS
(
HTMLDocument3
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_0
(
HTMLDocument3
,
releaseCapture
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
recalc
,
VARIANT_BOOL
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_2
(
HTMLDocument3
,
createTextNode
,
BSTR
,
IHTMLDOMNode
**
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_documentElement
,
IHTMLElement
**
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_uniqueID
,
BSTR
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_3
(
HTMLDocument3
,
attachEvent
,
BSTR
,
IDispatch
*
,
VARIANT_BOOL
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_2
(
HTMLDocument3
,
detachEvent
,
BSTR
,
IDispatch
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_onrowsdelete
,
VARIANT
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_onrowsdelete
,
VARIANT
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_onrowsinserted
,
VARIANT
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_onrowsinserted
,
VARIANT
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_oncellchange
,
VARIANT
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_oncellchange
,
VARIANT
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_ondatasetchanged
,
VARIANT
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_ondatasetchanged
,
VARIANT
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_ondataavailable
,
VARIANT
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_ondataavailable
,
VARIANT
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_ondatasetcomplete
,
VARIANT
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_ondatasetcomplete
,
VARIANT
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_onpropertychange
,
VARIANT
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_onpropertychange
,
VARIANT
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_dir
,
BSTR
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_dir
,
BSTR
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_oncontextmenu
,
VARIANT
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_oncontextmenu
,
VARIANT
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_onstop
,
VARIANT
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_onstop
,
VARIANT
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
createDocumentFragment
,
IHTMLDocument2
**
)
static
HRESULT
WINAPI
DocObjHTMLDocument3_get_parentDocument
(
IHTMLDocument3
*
iface
,
IHTMLDocument2
**
p
)
{
HTMLDocumentObj
*
This
=
impl_from_IHTMLDocument3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_enableDownload
,
VARIANT_BOOL
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_enableDownload
,
VARIANT_BOOL
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_baseUrl
,
BSTR
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_baseUrl
,
BSTR
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_childNodes
,
IDispatch
**
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_inheritStyleSheets
,
VARIANT_BOOL
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_inheritStyleSheets
,
VARIANT_BOOL
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
put_onbeforeeditfocus
,
VARIANT
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument3
,
get_onbeforeeditfocus
,
VARIANT
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_2
(
HTMLDocument3
,
getElementsByName
,
BSTR
,
IHTMLElementCollection
**
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_2
(
HTMLDocument3
,
getElementById
,
BSTR
,
IHTMLElement
**
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_2
(
HTMLDocument3
,
getElementsByTagName
,
BSTR
,
IHTMLElementCollection
**
)
static
const
IHTMLDocument3Vtbl
DocObjHTMLDocument3Vtbl
=
{
DocObjHTMLDocument3_QueryInterface
,
DocObjHTMLDocument3_AddRef
,
DocObjHTMLDocument3_Release
,
DocObjHTMLDocument3_GetTypeInfoCount
,
DocObjHTMLDocument3_GetTypeInfo
,
DocObjHTMLDocument3_GetIDsOfNames
,
DocObjHTMLDocument3_Invoke
,
DocObjHTMLDocument3_releaseCapture
,
DocObjHTMLDocument3_recalc
,
DocObjHTMLDocument3_createTextNode
,
DocObjHTMLDocument3_get_documentElement
,
DocObjHTMLDocument3_get_uniqueID
,
DocObjHTMLDocument3_attachEvent
,
DocObjHTMLDocument3_detachEvent
,
DocObjHTMLDocument3_put_onrowsdelete
,
DocObjHTMLDocument3_get_onrowsdelete
,
DocObjHTMLDocument3_put_onrowsinserted
,
DocObjHTMLDocument3_get_onrowsinserted
,
DocObjHTMLDocument3_put_oncellchange
,
DocObjHTMLDocument3_get_oncellchange
,
DocObjHTMLDocument3_put_ondatasetchanged
,
DocObjHTMLDocument3_get_ondatasetchanged
,
DocObjHTMLDocument3_put_ondataavailable
,
DocObjHTMLDocument3_get_ondataavailable
,
DocObjHTMLDocument3_put_ondatasetcomplete
,
DocObjHTMLDocument3_get_ondatasetcomplete
,
DocObjHTMLDocument3_put_onpropertychange
,
DocObjHTMLDocument3_get_onpropertychange
,
DocObjHTMLDocument3_put_dir
,
DocObjHTMLDocument3_get_dir
,
DocObjHTMLDocument3_put_oncontextmenu
,
DocObjHTMLDocument3_get_oncontextmenu
,
DocObjHTMLDocument3_put_onstop
,
DocObjHTMLDocument3_get_onstop
,
DocObjHTMLDocument3_createDocumentFragment
,
DocObjHTMLDocument3_get_parentDocument
,
DocObjHTMLDocument3_put_enableDownload
,
DocObjHTMLDocument3_get_enableDownload
,
DocObjHTMLDocument3_put_baseUrl
,
DocObjHTMLDocument3_get_baseUrl
,
DocObjHTMLDocument3_get_childNodes
,
DocObjHTMLDocument3_put_inheritStyleSheets
,
DocObjHTMLDocument3_get_inheritStyleSheets
,
DocObjHTMLDocument3_put_onbeforeeditfocus
,
DocObjHTMLDocument3_get_onbeforeeditfocus
,
DocObjHTMLDocument3_getElementsByName
,
DocObjHTMLDocument3_getElementById
,
DocObjHTMLDocument3_getElementsByTagName
};
/**********************************************************
* ISupportErrorInfo implementation
*/
HTMLDOCUMENTOBJ_IUNKNOWN_METHODS
(
SupportErrorInfo
)
...
...
@@ -2767,6 +2876,8 @@ static HRESULT WINAPI HTMLDocumentObj_QueryInterface(IUnknown *iface, REFIID rii
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLDocument
,
riid
)
||
IsEqualGUID
(
&
IID_IHTMLDocument2
,
riid
))
{
*
ppv
=
&
This
->
IHTMLDocument2_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLDocument3
,
riid
))
{
*
ppv
=
&
This
->
IHTMLDocument3_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_ICustomDoc
,
riid
))
{
*
ppv
=
&
This
->
ICustomDoc_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IDocumentSelector
,
riid
))
{
...
...
@@ -3084,6 +3195,7 @@ static HRESULT create_document_object(BOOL is_mhtml, IUnknown *outer, REFIID rii
doc
->
IUnknown_inner
.
lpVtbl
=
&
HTMLDocumentObjVtbl
;
doc
->
ICustomDoc_iface
.
lpVtbl
=
&
CustomDocVtbl
;
doc
->
IHTMLDocument2_iface
.
lpVtbl
=
&
DocObjHTMLDocument2Vtbl
;
doc
->
IHTMLDocument3_iface
.
lpVtbl
=
&
DocObjHTMLDocument3Vtbl
;
doc
->
IDocumentSelector_iface
.
lpVtbl
=
&
DocObjDocumentSelectorVtbl
;
doc
->
IDocumentEvent_iface
.
lpVtbl
=
&
DocObjDocumentEventVtbl
;
doc
->
ISupportErrorInfo_iface
.
lpVtbl
=
&
DocObjSupportErrorInfoVtbl
;
...
...
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