Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
5629945c
Commit
5629945c
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 IHTMDocument2::get_all.
parent
502532ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
17 deletions
+11
-17
htmldoc.c
dlls/mshtml/htmldoc.c
+11
-17
No files found.
dlls/mshtml/htmldoc.c
View file @
5629945c
...
...
@@ -265,35 +265,29 @@ static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch *
static
HRESULT
WINAPI
HTMLDocument_get_all
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
nsIDOMDocument
*
nsdoc
=
NULL
;
nsIDOMElement
*
nselem
=
NULL
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
This
->
ns
container
)
{
*
p
=
NULL
;
return
S_OK
;
if
(
!
This
->
ns
doc
)
{
WARN
(
"NULL nsdoc
\n
"
)
;
return
E_UNEXPECTED
;
}
nsres
=
nsIWebNavigation_GetDocument
(
This
->
nscontainer
->
navigation
,
&
nsdoc
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"GetDocument failed: %08x
\n
"
,
nsres
);
if
(
nsdoc
)
{
nsres
=
nsIDOMHTMLDocument_GetDocumentElement
(
nsdoc
,
&
nselem
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"GetDocumentElement failed: %08x
\n
"
,
nsres
);
nsres
=
nsIDOMHTMLDocument_GetDocumentElement
(
This
->
nsdoc
,
&
nselem
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetDocumentElement failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
if
(
!
nselem
)
{
if
(
nselem
)
{
*
p
=
create_all_collection
(
get_node
(
This
,
(
nsIDOMNode
*
)
nselem
,
TRUE
),
TRUE
);
nsIDOMElement_Release
(
nselem
);
}
else
{
*
p
=
NULL
;
return
S_OK
;
}
*
p
=
create_all_collection
(
get_node
(
This
,
(
nsIDOMNode
*
)
nselem
,
TRUE
),
TRUE
);
nsIDOMElement_Release
(
nselem
);
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