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
cf35bbd2
Commit
cf35bbd2
authored
Jun 26, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Share nsIDOMText reference with nsIDOMNode.
parent
d9efd6a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
18 deletions
+9
-18
htmltextnode.c
dlls/mshtml/htmltextnode.c
+9
-18
No files found.
dlls/mshtml/htmltextnode.c
View file @
cf35bbd2
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#include <stdarg.h>
#include <stdarg.h>
#include <assert.h>
#define COBJMACROS
#define COBJMACROS
...
@@ -178,16 +179,6 @@ static HRESULT HTMLDOMTextNode_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
...
@@ -178,16 +179,6 @@ static HRESULT HTMLDOMTextNode_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
return
S_OK
;
return
S_OK
;
}
}
static
void
HTMLDOMTextNode_destructor
(
HTMLDOMNode
*
iface
)
{
HTMLDOMTextNode
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nstext
)
IHTMLDOMTextNode_Release
(
This
->
nstext
);
HTMLDOMNode_destructor
(
&
This
->
node
);
}
static
HRESULT
HTMLDOMTextNode_clone
(
HTMLDOMNode
*
iface
,
nsIDOMNode
*
nsnode
,
HTMLDOMNode
**
ret
)
static
HRESULT
HTMLDOMTextNode_clone
(
HTMLDOMNode
*
iface
,
nsIDOMNode
*
nsnode
,
HTMLDOMNode
**
ret
)
{
{
HTMLDOMTextNode
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLDOMTextNode
*
This
=
impl_from_HTMLDOMNode
(
iface
);
...
@@ -197,7 +188,7 @@ static HRESULT HTMLDOMTextNode_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTM
...
@@ -197,7 +188,7 @@ static HRESULT HTMLDOMTextNode_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTM
static
const
NodeImplVtbl
HTMLDOMTextNodeImplVtbl
=
{
static
const
NodeImplVtbl
HTMLDOMTextNodeImplVtbl
=
{
HTMLDOMTextNode_QI
,
HTMLDOMTextNode_QI
,
HTMLDOM
Text
Node_destructor
,
HTMLDOMNode_destructor
,
HTMLDOMTextNode_clone
HTMLDOMTextNode_clone
};
};
...
@@ -226,17 +217,17 @@ HRESULT HTMLDOMTextNode_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLDO
...
@@ -226,17 +217,17 @@ HRESULT HTMLDOMTextNode_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLDO
ret
->
node
.
vtbl
=
&
HTMLDOMTextNodeImplVtbl
;
ret
->
node
.
vtbl
=
&
HTMLDOMTextNodeImplVtbl
;
ret
->
IHTMLDOMTextNode_iface
.
lpVtbl
=
&
HTMLDOMTextNodeVtbl
;
ret
->
IHTMLDOMTextNode_iface
.
lpVtbl
=
&
HTMLDOMTextNodeVtbl
;
nsres
=
nsIDOMNode_QueryInterface
(
nsnode
,
&
IID_nsIDOMText
,
(
void
**
)
&
ret
->
nstext
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIDOMText iface: %08x
\n
"
,
nsres
);
heap_free
(
ret
);
return
E_FAIL
;
}
init_dispex
(
&
ret
->
node
.
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLDOMTextNode_iface
,
init_dispex
(
&
ret
->
node
.
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLDOMTextNode_iface
,
&
HTMLDOMTextNode_dispex
);
&
HTMLDOMTextNode_dispex
);
HTMLDOMNode_Init
(
doc
,
&
ret
->
node
,
nsnode
);
HTMLDOMNode_Init
(
doc
,
&
ret
->
node
,
nsnode
);
nsres
=
nsIDOMNode_QueryInterface
(
nsnode
,
&
IID_nsIDOMText
,
(
void
**
)
&
ret
->
nstext
);
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nstext
==
ret
->
node
.
nsnode
);
/* Share reference with nsnode */
nsIDOMNode_Release
(
ret
->
node
.
nsnode
);
*
node
=
&
ret
->
node
;
*
node
=
&
ret
->
node
;
return
S_OK
;
return
S_OK
;
}
}
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