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
6270a46d
Commit
6270a46d
authored
Oct 04, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Pass HTMLDOMNode pointer to its destructor.
parent
829cafc6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
17 deletions
+18
-17
htmlelem.c
dlls/mshtml/htmlelem.c
+14
-14
htmlnode.c
dlls/mshtml/htmlnode.c
+1
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+3
-2
No files found.
dlls/mshtml/htmlelem.c
View file @
6270a46d
...
...
@@ -58,7 +58,7 @@ static void elem_vector_add(elem_vector *buf, HTMLElement *elem)
#define HTMLELEM_THIS(iface) DEFINE_THIS(HTMLElement, HTMLElement, iface)
#define HTMLELEM_NODE_THIS(
node) ((HTMLElement *) nod
e)
#define HTMLELEM_NODE_THIS(
iface) DEFINE_THIS2(HTMLElement, node, ifac
e)
static
HRESULT
WINAPI
HTMLElement_QueryInterface
(
IHTMLElement
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -1140,19 +1140,6 @@ static HRESULT WINAPI HTMLElement_get_all(IHTMLElement *iface, IDispatch **p)
return
HTMLElementCollection_Create
((
IUnknown
*
)
HTMLELEM
(
This
),
buf
.
buf
,
buf
.
len
,
p
);
}
static
void
HTMLElement_destructor
(
IUnknown
*
iface
)
{
HTMLElement
*
This
=
HTMLELEM_THIS
(
iface
);
if
(
This
->
destructor
)
This
->
destructor
(
This
->
impl
);
if
(
This
->
nselem
)
nsIDOMHTMLElement_Release
(
This
->
nselem
);
mshtml_free
(
This
);
}
#undef HTMLELEM_THIS
static
const
IHTMLElementVtbl
HTMLElementVtbl
=
{
...
...
@@ -1278,6 +1265,19 @@ HRESULT HTMLElement_QI(HTMLElement *This, REFIID riid, void **ppv)
return
HTMLDOMNode_QI
(
&
This
->
node
,
riid
,
ppv
);
}
static
void
HTMLElement_destructor
(
HTMLDOMNode
*
iface
)
{
HTMLElement
*
This
=
HTMLELEM_NODE_THIS
(
iface
);
if
(
This
->
destructor
)
This
->
destructor
(
This
->
impl
);
if
(
This
->
nselem
)
nsIDOMHTMLElement_Release
(
This
->
nselem
);
mshtml_free
(
This
);
}
HTMLElement
*
HTMLElement_Create
(
nsIDOMNode
*
nsnode
)
{
nsIDOMHTMLElement
*
nselem
;
...
...
dlls/mshtml/htmlnode.c
View file @
6270a46d
...
...
@@ -395,7 +395,7 @@ void release_nodes(HTMLDocument *This)
next
=
iter
->
next
;
nsIDOMNode_Release
(
iter
->
nsnode
);
if
(
iter
->
destructor
)
iter
->
destructor
(
iter
->
impl
.
unk
);
iter
->
destructor
(
iter
);
else
mshtml_free
(
iter
);
}
...
...
dlls/mshtml/mshtml_private.h
View file @
6270a46d
...
...
@@ -253,7 +253,7 @@ struct BSCallback {
struct
HTMLDOMNode
{
const
IHTMLDOMNodeVtbl
*
lpHTMLDOMNodeVtbl
;
void
(
*
destructor
)(
IUnknown
*
);
void
(
*
destructor
)(
HTMLDOMNode
*
);
union
{
IUnknown
*
unk
;
...
...
@@ -335,7 +335,8 @@ typedef struct {
#define HTMLTEXTCONT(x) ((IHTMLTextContainer*) &(x)->lpHTMLTextContainerVtbl)
#define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
#define DEFINE_THIS2(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,ifc)))
#define DEFINE_THIS(cls,ifc,iface) DEFINE_THIS2(cls,lp ## ifc ## Vtbl,iface)
HRESULT
HTMLDocument_Create
(
IUnknown
*
,
REFIID
,
void
**
);
HRESULT
HTMLLoadOptions_Create
(
IUnknown
*
,
REFIID
,
void
**
);
...
...
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