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
6aa3834f
Commit
6aa3834f
authored
Sep 19, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't use node_type from HTMLNode object.
parent
9fc79737
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
htmlelem.c
dlls/mshtml/htmlelem.c
+11
-12
No files found.
dlls/mshtml/htmlelem.c
View file @
6aa3834f
...
...
@@ -1033,7 +1033,7 @@ static void create_child_list(HTMLDocument *doc, HTMLElement *elem, elem_vector
nsIDOMNodeList
*
nsnode_list
;
nsIDOMNode
*
iter
;
PRUint32
list_len
=
0
,
i
;
HTMLDOMNode
*
nod
e
;
PRUint16
node_typ
e
;
nsresult
nsres
;
nsres
=
nsIDOMNode_GetChildNodes
(
elem
->
node
.
nsnode
,
&
nsnode_list
);
...
...
@@ -1056,11 +1056,9 @@ static void create_child_list(HTMLDocument *doc, HTMLElement *elem, elem_vector
continue
;
}
node
=
get_node
(
doc
,
iter
);
if
(
node
->
node_type
!=
NT_HTMLELEM
)
continue
;
elem_vector_add
(
buf
,
HTMLELEM_NODE_THIS
(
node
));
nsres
=
nsIDOMNode_GetNodeType
(
iter
,
&
node_type
);
if
(
NS_SUCCEEDED
(
nsres
)
&&
node_type
==
ELEMENT_NODE
)
elem_vector_add
(
buf
,
HTMLELEM_NODE_THIS
(
get_node
(
doc
,
iter
)));
}
}
...
...
@@ -1081,7 +1079,7 @@ static void create_all_list(HTMLDocument *doc, HTMLElement *elem, elem_vector *b
nsIDOMNodeList
*
nsnode_list
;
nsIDOMNode
*
iter
;
PRUint32
list_len
=
0
,
i
;
HTMLDOMNode
*
nod
e
;
PRUint16
node_typ
e
;
nsresult
nsres
;
nsres
=
nsIDOMNode_GetChildNodes
(
elem
->
node
.
nsnode
,
&
nsnode_list
);
...
...
@@ -1101,12 +1099,13 @@ static void create_all_list(HTMLDocument *doc, HTMLElement *elem, elem_vector *b
continue
;
}
n
ode
=
get_node
(
doc
,
iter
);
if
(
node
->
node_type
!=
NT_HTMLELEM
)
continue
;
n
sres
=
nsIDOMNode_GetNodeType
(
iter
,
&
node_type
);
if
(
NS_SUCCEEDED
(
nsres
)
&&
node_type
==
ELEMENT_NODE
)
{
HTMLDOMNode
*
node
=
get_node
(
doc
,
iter
)
;
elem_vector_add
(
buf
,
HTMLELEM_NODE_THIS
(
node
));
create_all_list
(
doc
,
HTMLELEM_NODE_THIS
(
node
),
buf
);
elem_vector_add
(
buf
,
HTMLELEM_NODE_THIS
(
node
));
create_all_list
(
doc
,
HTMLELEM_NODE_THIS
(
node
),
buf
);
}
}
}
...
...
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