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
c2b2e1ea
Commit
c2b2e1ea
authored
Aug 22, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Get rid of not used aggregation support in domelement.
parent
80f02b82
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
80 deletions
+39
-80
domdoc.c
dlls/msxml3/domdoc.c
+1
-1
element.c
dlls/msxml3/element.c
+36
-77
msxml_private.h
dlls/msxml3/msxml_private.h
+1
-1
node.c
dlls/msxml3/node.c
+1
-1
No files found.
dlls/msxml3/domdoc.c
View file @
c2b2e1ea
...
...
@@ -1043,7 +1043,7 @@ static HRESULT WINAPI domdoc_createElement(
xmldoc_add_orphan
(
xmlnode
->
doc
,
xmlnode
);
TRACE
(
"created xmlptr %p
\n
"
,
xmlnode
);
elem_unk
=
create_element
(
xmlnode
,
NULL
);
elem_unk
=
create_element
(
xmlnode
);
HeapFree
(
GetProcessHeap
(),
0
,
xml_name
);
hr
=
IUnknown_QueryInterface
(
elem_unk
,
&
IID_IXMLDOMElement
,
(
void
**
)
element
);
...
...
dlls/msxml3/element.c
View file @
c2b2e1ea
...
...
@@ -41,8 +41,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
typedef
struct
_domelem
{
const
struct
IXMLDOMElementVtbl
*
lpVtbl
;
const
struct
IUnknownVtbl
*
lpInternalUnkVtbl
;
IUnknown
*
pUnkOuter
;
LONG
ref
;
xmlnode
*
node
;
}
domelem
;
...
...
@@ -52,11 +50,6 @@ static inline domelem *impl_from_IXMLDOMElement( IXMLDOMElement *iface )
return
(
domelem
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
domelem
,
lpVtbl
));
}
static
inline
domelem
*
impl_from_InternalUnknown
(
IUnknown
*
iface
)
{
return
(
domelem
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
domelem
,
lpInternalUnkVtbl
));
}
static
inline
xmlNodePtr
get_element
(
domelem
*
This
)
{
return
This
->
node
->
node
;
...
...
@@ -68,23 +61,54 @@ static HRESULT WINAPI domelem_QueryInterface(
void
**
ppvObject
)
{
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
TRACE
(
"%p %s %p
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
return
IUnknown_QueryInterface
(
This
->
pUnkOuter
,
riid
,
ppvObject
);
if
(
IsEqualGUID
(
riid
,
&
IID_IXMLDOMElement
)
||
IsEqualGUID
(
riid
,
&
IID_IDispatch
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
{
*
ppvObject
=
&
This
->
lpVtbl
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IXMLDOMNode
)
)
{
*
ppvObject
=
IXMLDOMNode_from_impl
(
This
->
node
);
}
else
{
FIXME
(
"interface %s not implemented
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
IUnknown_AddRef
(
(
IUnknown
*
)
*
ppvObject
);
return
S_OK
;
}
static
ULONG
WINAPI
domelem_AddRef
(
IXMLDOMElement
*
iface
)
{
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
return
IUnknown_AddRef
(
This
->
pUnkOuter
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
domelem_Release
(
IXMLDOMElement
*
iface
)
{
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
return
IUnknown_Release
(
This
->
pUnkOuter
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
IXMLDOMNode_Release
(
IXMLDOMNode_from_impl
(
This
->
node
));
heap_free
(
This
);
}
return
ref
;
}
static
HRESULT
WINAPI
domelem_GetTypeInfoCount
(
...
...
@@ -727,66 +751,7 @@ static const struct IXMLDOMElementVtbl domelem_vtbl =
domelem_normalize
,
};
static
HRESULT
WINAPI
Internal_QueryInterface
(
IUnknown
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
domelem
*
This
=
impl_from_InternalUnknown
(
iface
);
TRACE
(
"%p %s %p
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
if
(
IsEqualGUID
(
riid
,
&
IID_IXMLDOMElement
)
||
IsEqualGUID
(
riid
,
&
IID_IDispatch
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
{
*
ppvObject
=
&
This
->
lpVtbl
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IXMLDOMNode
)
)
{
*
ppvObject
=
IXMLDOMNode_from_impl
(
This
->
node
);
}
else
{
FIXME
(
"interface %s not implemented
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
IUnknown_AddRef
(
(
IUnknown
*
)
*
ppvObject
);
return
S_OK
;
}
static
ULONG
WINAPI
Internal_AddRef
(
IUnknown
*
iface
)
{
domelem
*
This
=
impl_from_InternalUnknown
(
iface
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
Internal_Release
(
IUnknown
*
iface
)
{
domelem
*
This
=
impl_from_InternalUnknown
(
iface
);
ULONG
ref
;
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
IXMLDOMNode_Release
(
IXMLDOMNode_from_impl
(
This
->
node
)
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
static
const
struct
IUnknownVtbl
internal_unk_vtbl
=
{
Internal_QueryInterface
,
Internal_AddRef
,
Internal_Release
};
IUnknown
*
create_element
(
xmlNodePtr
element
,
IUnknown
*
pUnkOuter
)
IUnknown
*
create_element
(
xmlNodePtr
element
)
{
domelem
*
This
;
...
...
@@ -796,12 +761,6 @@ IUnknown* create_element( xmlNodePtr element, IUnknown *pUnkOuter )
This
->
lpVtbl
=
&
domelem_vtbl
;
This
->
ref
=
1
;
This
->
lpInternalUnkVtbl
=
&
internal_unk_vtbl
;
if
(
pUnkOuter
)
This
->
pUnkOuter
=
pUnkOuter
;
/* Don't take a ref on outer Unknown */
else
This
->
pUnkOuter
=
(
IUnknown
*
)
&
This
->
lpInternalUnkVtbl
;
This
->
node
=
create_basic_node
(
element
,
(
IUnknown
*
)
&
This
->
lpVtbl
);
if
(
!
This
->
node
)
...
...
@@ -810,7 +769,7 @@ IUnknown* create_element( xmlNodePtr element, IUnknown *pUnkOuter )
return
NULL
;
}
return
(
IUnknown
*
)
&
This
->
lp
InternalUnk
Vtbl
;
return
(
IUnknown
*
)
&
This
->
lpVtbl
;
}
#endif
dlls/msxml3/msxml_private.h
View file @
c2b2e1ea
...
...
@@ -39,7 +39,7 @@
extern
IUnknown
*
create_domdoc
(
xmlNodePtr
document
);
extern
IUnknown
*
create_xmldoc
(
void
);
extern
IXMLDOMNode
*
create_node
(
xmlNodePtr
node
);
extern
IUnknown
*
create_element
(
xmlNodePtr
element
,
IUnknown
*
pUnkOuter
);
extern
IUnknown
*
create_element
(
xmlNodePtr
element
);
extern
IUnknown
*
create_attribute
(
xmlNodePtr
attribute
);
extern
IUnknown
*
create_text
(
xmlNodePtr
text
);
extern
IUnknown
*
create_pi
(
xmlNodePtr
pi
);
...
...
dlls/msxml3/node.c
View file @
c2b2e1ea
...
...
@@ -1580,7 +1580,7 @@ IXMLDOMNode *create_node( xmlNodePtr node )
switch
(
node
->
type
)
{
case
XML_ELEMENT_NODE
:
pUnk
=
create_element
(
node
,
NULL
);
pUnk
=
create_element
(
node
);
break
;
case
XML_ATTRIBUTE_NODE
:
pUnk
=
create_attribute
(
node
);
...
...
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