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
e5604b7b
Commit
e5604b7b
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 IHTMLTxtRange::put_text.
parent
16f2965e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
txtrange.c
dlls/mshtml/txtrange.c
+1
-9
No files found.
dlls/mshtml/txtrange.c
View file @
e5604b7b
...
...
@@ -1093,7 +1093,6 @@ static HRESULT WINAPI HTMLTxtRange_get_htmlText(IHTMLTxtRange *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLTxtRange_put_text
(
IHTMLTxtRange
*
iface
,
BSTR
v
)
{
HTMLTxtRange
*
This
=
HTMLTXTRANGE_THIS
(
iface
);
nsIDOMDocument
*
nsdoc
;
nsIDOMText
*
text_node
;
nsAString
text_str
;
nsresult
nsres
;
...
...
@@ -1103,15 +1102,8 @@ static HRESULT WINAPI HTMLTxtRange_put_text(IHTMLTxtRange *iface, BSTR v)
if
(
!
This
->
doc
)
return
MSHTML_E_NODOC
;
nsres
=
nsIWebNavigation_GetDocument
(
This
->
doc
->
nscontainer
->
navigation
,
&
nsdoc
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetDocument failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
nsAString_Init
(
&
text_str
,
v
);
nsres
=
nsIDOMDocument_CreateTextNode
(
nsdoc
,
&
text_str
,
&
text_node
);
nsIDOMDocument_Release
(
nsdoc
);
nsres
=
nsIDOMHTMLDocument_CreateTextNode
(
This
->
doc
->
nsdoc
,
&
text_str
,
&
text_node
);
nsAString_Finish
(
&
text_str
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"CreateTextNode failed: %08x
\n
"
,
nsres
);
...
...
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