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
4f08c4f0
Commit
4f08c4f0
authored
Oct 08, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use stored nsdoc in createTextNode.
parent
9f1d3b21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
htmldoc3.c
dlls/mshtml/htmldoc3.c
+5
-4
No files found.
dlls/mshtml/htmldoc3.c
View file @
4f08c4f0
...
...
@@ -103,7 +103,6 @@ static HRESULT WINAPI HTMLDocument3_createTextNode(IHTMLDocument3 *iface, BSTR t
IHTMLDOMNode
**
newTextNode
)
{
HTMLDocument
*
This
=
HTMLDOC3_THIS
(
iface
);
nsIDOMDocument
*
nsdoc
;
nsIDOMText
*
nstext
;
HTMLDOMNode
*
node
;
nsAString
text_str
;
...
...
@@ -111,12 +110,14 @@ static HRESULT WINAPI HTMLDocument3_createTextNode(IHTMLDocument3 *iface, BSTR t
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
text
),
newTextNode
);
nsIWebNavigation_GetDocument
(
This
->
nscontainer
->
navigation
,
&
nsdoc
);
if
(
!
This
->
nsdoc
)
{
WARN
(
"NULL nsdoc
\n
"
);
return
E_UNEXPECTED
;
}
nsAString_Init
(
&
text_str
,
text
);
nsres
=
nsIDOM
Document_CreateTextNode
(
nsdoc
,
&
text_str
,
&
nstext
);
nsres
=
nsIDOM
HTMLDocument_CreateTextNode
(
This
->
nsdoc
,
&
text_str
,
&
nstext
);
nsAString_Finish
(
&
text_str
);
nsIDOMDocument_Release
(
nsdoc
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"CreateTextNode failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
...
...
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