Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8423450c
Commit
8423450c
authored
Oct 09, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use stored nsdoc in exec_indent.
parent
08efe6de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
txtrange.c
dlls/mshtml/txtrange.c
+6
-6
No files found.
dlls/mshtml/txtrange.c
View file @
8423450c
...
...
@@ -1746,7 +1746,6 @@ static HRESULT exec_indent(HTMLTxtRange *This, VARIANT *in, VARIANT *out)
{
nsIDOMDocumentFragment
*
fragment
;
nsIDOMElement
*
blockquote_elem
,
*
p_elem
;
nsIDOMDocument
*
nsdoc
;
nsIDOMNode
*
tmp
;
nsAString
tag_str
;
...
...
@@ -1755,18 +1754,19 @@ static HRESULT exec_indent(HTMLTxtRange *This, VARIANT *in, VARIANT *out)
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
in
,
out
);
nsIWebNavigation_GetDocument
(
This
->
doc
->
nscontainer
->
navigation
,
&
nsdoc
);
if
(
!
This
->
doc
->
nsdoc
)
{
WARN
(
"NULL nsdoc
\n
"
);
return
E_NOTIMPL
;
}
nsAString_Init
(
&
tag_str
,
blockquoteW
);
nsIDOM
Document_CreateElement
(
nsdoc
,
&
tag_str
,
&
blockquote_elem
);
nsIDOM
HTMLDocument_CreateElement
(
This
->
doc
->
nsdoc
,
&
tag_str
,
&
blockquote_elem
);
nsAString_Finish
(
&
tag_str
);
nsAString_Init
(
&
tag_str
,
pW
);
nsIDOMDocument_CreateElement
(
nsdoc
,
&
tag_str
,
&
p_elem
);
nsIDOMDocument_CreateElement
(
This
->
doc
->
nsdoc
,
&
tag_str
,
&
p_elem
);
nsAString_Finish
(
&
tag_str
);
nsIDOMDocument_Release
(
nsdoc
);
nsIDOMRange_ExtractContents
(
This
->
nsrange
,
&
fragment
);
nsIDOMElement_AppendChild
(
p_elem
,
(
nsIDOMNode
*
)
fragment
,
&
tmp
);
nsIDOMDocumentFragment_Release
(
fragment
);
...
...
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