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
cfb89754
Commit
cfb89754
authored
Apr 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
May 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Handle COMMENT_NODE like ELEMENT_NODE in element collection.
parent
af529308
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
htmlelem.c
dlls/mshtml/htmlelem.c
+11
-6
No files found.
dlls/mshtml/htmlelem.c
View file @
cfb89754
...
...
@@ -65,6 +65,15 @@ static void elem_vector_normalize(elem_vector *buf)
buf
->
size
=
buf
->
len
;
}
static
BOOL
is_elem_node
(
nsIDOMNode
*
node
)
{
PRUint16
type
=
0
;
nsIDOMNode_GetNodeType
(
node
,
&
type
);
return
type
==
ELEMENT_NODE
||
type
==
COMMENT_NODE
;
}
#define HTMLELEM_THIS(iface) DEFINE_THIS(HTMLElement, HTMLElement, iface)
#define HTMLELEM_NODE_THIS(iface) DEFINE_THIS2(HTMLElement, node, iface)
...
...
@@ -1081,7 +1090,6 @@ static void create_child_list(HTMLDocument *doc, HTMLElement *elem, elem_vector
nsIDOMNodeList
*
nsnode_list
;
nsIDOMNode
*
iter
;
PRUint32
list_len
=
0
,
i
;
PRUint16
node_type
;
nsresult
nsres
;
nsres
=
nsIDOMNode_GetChildNodes
(
elem
->
node
.
nsnode
,
&
nsnode_list
);
...
...
@@ -1104,8 +1112,7 @@ static void create_child_list(HTMLDocument *doc, HTMLElement *elem, elem_vector
continue
;
}
nsres
=
nsIDOMNode_GetNodeType
(
iter
,
&
node_type
);
if
(
NS_SUCCEEDED
(
nsres
)
&&
node_type
==
ELEMENT_NODE
)
if
(
is_elem_node
(
iter
))
elem_vector_add
(
buf
,
HTMLELEM_NODE_THIS
(
get_node
(
doc
,
iter
,
TRUE
)));
}
}
...
...
@@ -1128,7 +1135,6 @@ static void create_all_list(HTMLDocument *doc, HTMLDOMNode *elem, elem_vector *b
nsIDOMNodeList
*
nsnode_list
;
nsIDOMNode
*
iter
;
PRUint32
list_len
=
0
,
i
;
PRUint16
node_type
;
nsresult
nsres
;
nsres
=
nsIDOMNode_GetChildNodes
(
elem
->
nsnode
,
&
nsnode_list
);
...
...
@@ -1148,8 +1154,7 @@ static void create_all_list(HTMLDocument *doc, HTMLDOMNode *elem, elem_vector *b
continue
;
}
nsres
=
nsIDOMNode_GetNodeType
(
iter
,
&
node_type
);
if
(
NS_SUCCEEDED
(
nsres
)
&&
node_type
==
ELEMENT_NODE
)
{
if
(
is_elem_node
(
iter
))
{
HTMLDOMNode
*
node
=
get_node
(
doc
,
iter
,
TRUE
);
elem_vector_add
(
buf
,
HTMLELEM_NODE_THIS
(
node
));
...
...
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