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
2bcd1f0e
Commit
2bcd1f0e
authored
Dec 04, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IConnectionPointContainer iface to all HTMLElement objects.
parent
a9e77575
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
htmlbody.c
dlls/mshtml/htmlbody.c
+3
-8
htmlelem.c
dlls/mshtml/htmlelem.c
+7
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
No files found.
dlls/mshtml/htmlbody.c
View file @
2bcd1f0e
...
...
@@ -40,7 +40,6 @@ typedef struct {
const
IHTMLBodyElementVtbl
*
lpHTMLBodyElementVtbl
;
ConnectionPointContainer
cp_container
;
ConnectionPoint
cp_propnotif
;
ConnectionPoint
cp_txtcontevents
;
...
...
@@ -464,9 +463,6 @@ static HRESULT HTMLBodyElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLTextContainer
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLTextContainer %p)
\n
"
,
&
This
->
textcont
,
ppv
);
*
ppv
=
HTMLTEXTCONT
(
&
This
->
textcont
);
}
else
if
(
IsEqualGUID
(
&
IID_IConnectionPointContainer
,
riid
))
{
TRACE
(
"(%p)->(IID_IConnectionPointContainer %p)
\n
"
,
This
,
ppv
);
*
ppv
=
CONPTCONT
(
&
This
->
cp_container
);
}
if
(
*
ppv
)
{
...
...
@@ -481,7 +477,6 @@ static void HTMLBodyElement_destructor(HTMLDOMNode *iface)
{
HTMLBodyElement
*
This
=
HTMLBODY_NODE_THIS
(
iface
);
ConnectionPointContainer_Destroy
(
&
This
->
cp_container
);
nsIDOMHTMLBodyElement_Release
(
This
->
nsbody
);
HTMLElement_destructor
(
&
This
->
textcont
.
element
.
node
);
...
...
@@ -506,9 +501,9 @@ HTMLElement *HTMLBodyElement_Create(nsIDOMHTMLElement *nselem)
ret
->
lpHTMLBodyElementVtbl
=
&
HTMLBodyElementVtbl
;
ret
->
textcont
.
element
.
node
.
vtbl
=
&
HTMLBodyElementImplVtbl
;
ConnectionPoint
Container_Init
(
&
ret
->
cp_container
,
(
IUnknown
*
)
HTMLBODY
(
ret
)
);
ConnectionPoint_Init
(
&
ret
->
cp_
propnotif
,
&
ret
->
cp_container
,
&
IID_IPropertyNotifySink
);
ConnectionPoint_Init
(
&
ret
->
cp_txtcontevents
,
&
ret
->
cp_container
,
&
DIID_HTMLTextContainerEvents
);
ConnectionPoint
_Init
(
&
ret
->
cp_propnotif
,
&
ret
->
textcont
.
element
.
cp_container
,
&
IID_IPropertyNotifySink
);
ConnectionPoint_Init
(
&
ret
->
cp_
txtcontevents
,
&
ret
->
textcont
.
element
.
cp_container
,
&
DIID_HTMLTextContainerEvents
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLBodyElement
,
(
void
**
)
&
ret
->
nsbody
);
...
...
dlls/mshtml/htmlelem.c
View file @
2bcd1f0e
...
...
@@ -1255,6 +1255,9 @@ HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLElement2
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLElement2 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLELEM2
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IConnectionPointContainer
,
riid
))
{
TRACE
(
"(%p)->(IID_IConnectionPointContainer %p)
\n
"
,
This
,
ppv
);
*
ppv
=
CONPTCONT
(
&
This
->
cp_container
);
}
if
(
*
ppv
)
{
...
...
@@ -1269,6 +1272,8 @@ void HTMLElement_destructor(HTMLDOMNode *iface)
{
HTMLElement
*
This
=
HTMLELEM_NODE_THIS
(
iface
);
ConnectionPointContainer_Destroy
(
&
This
->
cp_container
);
if
(
This
->
nselem
)
nsIDOMHTMLElement_Release
(
This
->
nselem
);
...
...
@@ -1285,6 +1290,8 @@ void HTMLElement_Init(HTMLElement *This)
This
->
node
.
vtbl
=
&
HTMLElementImplVtbl
;
This
->
lpHTMLElementVtbl
=
&
HTMLElementVtbl
;
ConnectionPointContainer_Init
(
&
This
->
cp_container
,
(
IUnknown
*
)
HTMLELEM
(
This
));
HTMLElement2_Init
(
This
);
}
...
...
dlls/mshtml/mshtml_private.h
View file @
2bcd1f0e
...
...
@@ -285,6 +285,7 @@ struct HTMLDOMNode {
typedef
struct
{
HTMLDOMNode
node
;
ConnectionPointContainer
cp_container
;
const
IHTMLElementVtbl
*
lpHTMLElementVtbl
;
const
IHTMLElement2Vtbl
*
lpHTMLElement2Vtbl
;
...
...
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