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
bf01d1b3
Commit
bf01d1b3
authored
Feb 23, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Remove transformNode() forward.
parent
aac690d4
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
56 additions
and
59 deletions
+56
-59
attribute.c
dlls/msxml3/attribute.c
+3
-2
cdata.c
dlls/msxml3/cdata.c
+3
-2
comment.c
dlls/msxml3/comment.c
+3
-2
docfrag.c
dlls/msxml3/docfrag.c
+3
-2
domdoc.c
dlls/msxml3/domdoc.c
+4
-3
element.c
dlls/msxml3/element.c
+3
-2
entityref.c
dlls/msxml3/entityref.c
+3
-2
msxml_private.h
dlls/msxml3/msxml_private.h
+1
-0
node.c
dlls/msxml3/node.c
+27
-40
pi.c
dlls/msxml3/pi.c
+3
-2
text.c
dlls/msxml3/text.c
+3
-2
No files found.
dlls/msxml3/attribute.c
View file @
bf01d1b3
...
...
@@ -478,10 +478,11 @@ static HRESULT WINAPI domattr_get_xml(
static
HRESULT
WINAPI
domattr_transformNode
(
IXMLDOMAttribute
*
iface
,
IXMLDOMNode
*
domNode
,
BSTR
*
p
)
IXMLDOMNode
*
node
,
BSTR
*
p
)
{
domattr
*
This
=
impl_from_IXMLDOMAttribute
(
iface
);
return
IXMLDOMNode_transformNode
(
&
This
->
node
.
IXMLDOMNode_iface
,
domNode
,
p
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
node
,
p
);
return
node_transform_node
(
&
This
->
node
,
node
,
p
);
}
static
HRESULT
WINAPI
domattr_selectNodes
(
...
...
dlls/msxml3/cdata.c
View file @
bf01d1b3
...
...
@@ -488,10 +488,11 @@ static HRESULT WINAPI domcdata_get_xml(
static
HRESULT
WINAPI
domcdata_transformNode
(
IXMLDOMCDATASection
*
iface
,
IXMLDOMNode
*
domNode
,
BSTR
*
p
)
IXMLDOMNode
*
node
,
BSTR
*
p
)
{
domcdata
*
This
=
impl_from_IXMLDOMCDATASection
(
iface
);
return
IXMLDOMNode_transformNode
(
&
This
->
node
.
IXMLDOMNode_iface
,
domNode
,
p
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
node
,
p
);
return
node_transform_node
(
&
This
->
node
,
node
,
p
);
}
static
HRESULT
WINAPI
domcdata_selectNodes
(
...
...
dlls/msxml3/comment.c
View file @
bf01d1b3
...
...
@@ -481,10 +481,11 @@ static HRESULT WINAPI domcomment_get_xml(
static
HRESULT
WINAPI
domcomment_transformNode
(
IXMLDOMComment
*
iface
,
IXMLDOMNode
*
domNode
,
BSTR
*
p
)
IXMLDOMNode
*
node
,
BSTR
*
p
)
{
domcomment
*
This
=
impl_from_IXMLDOMComment
(
iface
);
return
IXMLDOMNode_transformNode
(
&
This
->
node
.
IXMLDOMNode_iface
,
domNode
,
p
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
node
,
p
);
return
node_transform_node
(
&
This
->
node
,
node
,
p
);
}
static
HRESULT
WINAPI
domcomment_selectNodes
(
...
...
dlls/msxml3/docfrag.c
View file @
bf01d1b3
...
...
@@ -485,10 +485,11 @@ static HRESULT WINAPI domfrag_get_xml(
static
HRESULT
WINAPI
domfrag_transformNode
(
IXMLDOMDocumentFragment
*
iface
,
IXMLDOMNode
*
domNode
,
BSTR
*
p
)
IXMLDOMNode
*
node
,
BSTR
*
p
)
{
domfrag
*
This
=
impl_from_IXMLDOMDocumentFragment
(
iface
);
return
IXMLDOMNode_transformNode
(
&
This
->
node
.
IXMLDOMNode_iface
,
domNode
,
p
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
node
,
p
);
return
node_transform_node
(
&
This
->
node
,
node
,
p
);
}
static
HRESULT
WINAPI
domfrag_selectNodes
(
...
...
dlls/msxml3/domdoc.c
View file @
bf01d1b3
...
...
@@ -1432,11 +1432,12 @@ static HRESULT WINAPI domdoc_get_xml(
static
HRESULT
WINAPI
domdoc_transformNode
(
IXMLDOMDocument3
*
iface
,
IXMLDOMNode
*
styleSheet
,
BSTR
*
xmlString
)
IXMLDOMNode
*
node
,
BSTR
*
p
)
{
domdoc
*
This
=
impl_from_IXMLDOMDocument3
(
iface
);
return
IXMLDOMNode_transformNode
(
&
This
->
node
.
IXMLDOMNode_iface
,
styleSheet
,
xmlString
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
node
,
p
);
return
node_transform_node
(
&
This
->
node
,
node
,
p
);
}
...
...
dlls/msxml3/element.c
View file @
bf01d1b3
...
...
@@ -937,10 +937,11 @@ static HRESULT WINAPI domelem_get_xml(
static
HRESULT
WINAPI
domelem_transformNode
(
IXMLDOMElement
*
iface
,
IXMLDOMNode
*
domNode
,
BSTR
*
p
)
IXMLDOMNode
*
node
,
BSTR
*
p
)
{
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
return
IXMLDOMNode_transformNode
(
&
This
->
node
.
IXMLDOMNode_iface
,
domNode
,
p
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
node
,
p
);
return
node_transform_node
(
&
This
->
node
,
node
,
p
);
}
static
HRESULT
WINAPI
domelem_selectNodes
(
...
...
dlls/msxml3/entityref.c
View file @
bf01d1b3
...
...
@@ -479,10 +479,11 @@ static HRESULT WINAPI entityref_get_xml(
static
HRESULT
WINAPI
entityref_transformNode
(
IXMLDOMEntityReference
*
iface
,
IXMLDOMNode
*
domNode
,
BSTR
*
p
)
IXMLDOMNode
*
node
,
BSTR
*
p
)
{
entityref
*
This
=
impl_from_IXMLDOMEntityReference
(
iface
);
return
IXMLDOMNode_transformNode
(
&
This
->
node
.
IXMLDOMNode_iface
,
domNode
,
p
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
node
,
p
);
return
node_transform_node
(
&
This
->
node
,
node
,
p
);
}
static
HRESULT
WINAPI
entityref_selectNodes
(
...
...
dlls/msxml3/msxml_private.h
View file @
bf01d1b3
...
...
@@ -270,6 +270,7 @@ extern HRESULT node_get_owner_doc(const xmlnode*,IXMLDOMDocument**);
extern
HRESULT
node_get_text
(
const
xmlnode
*
,
BSTR
*
);
extern
HRESULT
node_select_nodes
(
const
xmlnode
*
,
BSTR
,
IXMLDOMNodeList
**
);
extern
HRESULT
node_select_singlenode
(
const
xmlnode
*
,
BSTR
,
IXMLDOMNode
**
);
extern
HRESULT
node_transform_node
(
const
xmlnode
*
,
IXMLDOMNode
*
,
BSTR
*
);
extern
HRESULT
get_domdoc_from_xmldoc
(
xmlDocPtr
xmldoc
,
IXMLDOMDocument3
**
document
);
...
...
dlls/msxml3/node.c
View file @
bf01d1b3
...
...
@@ -952,66 +952,54 @@ HRESULT node_get_xml(xmlnode *This, BOOL ensure_eol, BOOL ensure_no_encoding, BS
return
*
ret
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
xmlnode_transformNode
(
IXMLDOMNode
*
iface
,
IXMLDOMNode
*
styleSheet
,
BSTR
*
xmlString
)
HRESULT
node_transform_node
(
const
xmlnode
*
This
,
IXMLDOMNode
*
stylesheet
,
BSTR
*
p
)
{
#ifdef SONAME_LIBXSLT
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
xmlnode
*
pStyleSheet
=
NULL
;
xsltStylesheetPtr
xsltSS
=
NULL
;
xmlDocPtr
result
=
NULL
;
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
styleSheet
,
xmlString
);
xsltStylesheetPtr
xsltSS
;
xmlnode
*
sheet
;
if
(
!
libxslt_handle
)
return
E_NOTIMPL
;
if
(
!
styleSheet
||
!
xmlString
)
return
E_INVALIDARG
;
if
(
!
libxslt_handle
)
return
E_NOTIMPL
;
if
(
!
stylesheet
||
!
p
)
return
E_INVALIDARG
;
*
xmlString
=
NULL
;
*
p
=
NULL
;
pStyleSheet
=
get_node_obj
(
styleS
heet
);
if
(
!
pStyleS
heet
)
{
sheet
=
get_node_obj
(
styles
heet
);
if
(
!
s
heet
)
{
FIXME
(
"styleSheet is not our xmlnode implementation
\n
"
);
return
E_FAIL
;
}
xsltSS
=
pxsltParseStylesheetDoc
(
pStyleS
heet
->
node
->
doc
);
xsltSS
=
pxsltParseStylesheetDoc
(
s
heet
->
node
->
doc
);
if
(
xsltSS
)
{
result
=
pxsltApplyStylesheet
(
xsltSS
,
This
->
node
->
doc
,
NULL
);
xmlDocPtr
result
=
pxsltApplyStylesheet
(
xsltSS
,
This
->
node
->
doc
,
NULL
);
if
(
result
)
{
const
xmlChar
*
pC
ontent
;
const
xmlChar
*
c
ontent
;
if
(
result
->
type
==
XML_HTML_DOCUMENT_NODE
)
{
xmlOutputBufferPtr
pO
utput
=
xmlAllocOutputBuffer
(
NULL
);
if
(
pO
utput
)
xmlOutputBufferPtr
o
utput
=
xmlAllocOutputBuffer
(
NULL
);
if
(
o
utput
)
{
htmlDocContentDumpOutput
(
pO
utput
,
result
->
doc
,
NULL
);
pContent
=
xmlBufferContent
(
pO
utput
->
buffer
);
*
xmlString
=
bstr_from_xmlChar
(
pC
ontent
);
xmlOutputBufferClose
(
pO
utput
);
htmlDocContentDumpOutput
(
o
utput
,
result
->
doc
,
NULL
);
content
=
xmlBufferContent
(
o
utput
->
buffer
);
*
p
=
bstr_from_xmlChar
(
c
ontent
);
xmlOutputBufferClose
(
o
utput
);
}
}
else
{
xmlBufferPtr
pXmlBuf
;
int
nSize
;
pXmlBuf
=
xmlBufferCreate
();
if
(
pXmlBuf
)
xmlBufferPtr
buf
=
xmlBufferCreate
();
if
(
buf
)
{
nSize
=
xmlNodeDump
(
pXmlB
uf
,
NULL
,
(
xmlNodePtr
)
result
,
0
,
0
);
if
(
nS
ize
>
0
)
int
size
=
xmlNodeDump
(
b
uf
,
NULL
,
(
xmlNodePtr
)
result
,
0
,
0
);
if
(
s
ize
>
0
)
{
pContent
=
xmlBufferContent
(
pXmlB
uf
);
*
xmlString
=
bstr_from_xmlChar
(
pC
ontent
);
content
=
xmlBufferContent
(
b
uf
);
*
p
=
bstr_from_xmlChar
(
c
ontent
);
}
xmlBufferFree
(
pXmlB
uf
);
xmlBufferFree
(
b
uf
);
}
}
xmlFreeDoc
(
result
);
...
...
@@ -1022,8 +1010,7 @@ static HRESULT WINAPI xmlnode_transformNode(
pxsltFreeStylesheet
(
xsltSS
);
}
if
(
*
xmlString
==
NULL
)
*
xmlString
=
SysAllocStringLen
(
NULL
,
0
);
if
(
!*
p
)
*
p
=
SysAllocStringLen
(
NULL
,
0
);
return
S_OK
;
#else
...
...
@@ -1148,7 +1135,7 @@ static const struct IXMLDOMNodeVtbl xmlnode_vtbl =
NULL
,
NULL
,
NULL
,
xmlnode_transformNode
,
NULL
,
NULL
,
NULL
};
...
...
@@ -1612,7 +1599,7 @@ static HRESULT WINAPI unknode_transformNode(
IXMLDOMNode
*
domNode
,
BSTR
*
p
)
{
unknode
*
This
=
unknode_from_IXMLDOMNode
(
iface
);
return
IXMLDOMNode_transformNode
(
&
This
->
node
.
IXMLDOMNode_iface
,
domNode
,
p
);
return
node_transform_node
(
&
This
->
node
,
domNode
,
p
);
}
static
HRESULT
WINAPI
unknode_selectNodes
(
...
...
dlls/msxml3/pi.c
View file @
bf01d1b3
...
...
@@ -496,10 +496,11 @@ static HRESULT WINAPI dom_pi_get_xml(
static
HRESULT
WINAPI
dom_pi_transformNode
(
IXMLDOMProcessingInstruction
*
iface
,
IXMLDOMNode
*
domNode
,
BSTR
*
p
)
IXMLDOMNode
*
node
,
BSTR
*
p
)
{
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
return
IXMLDOMNode_transformNode
(
&
This
->
node
.
IXMLDOMNode_iface
,
domNode
,
p
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
node
,
p
);
return
node_transform_node
(
&
This
->
node
,
node
,
p
);
}
static
HRESULT
WINAPI
dom_pi_selectNodes
(
...
...
dlls/msxml3/text.c
View file @
bf01d1b3
...
...
@@ -566,10 +566,11 @@ static HRESULT WINAPI domtext_get_xml(
static
HRESULT
WINAPI
domtext_transformNode
(
IXMLDOMText
*
iface
,
IXMLDOMNode
*
domNode
,
BSTR
*
p
)
IXMLDOMNode
*
node
,
BSTR
*
p
)
{
domtext
*
This
=
impl_from_IXMLDOMText
(
iface
);
return
IXMLDOMNode_transformNode
(
&
This
->
node
.
IXMLDOMNode_iface
,
domNode
,
p
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
node
,
p
);
return
node_transform_node
(
&
This
->
node
,
node
,
p
);
}
static
HRESULT
WINAPI
domtext_selectNodes
(
...
...
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