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
47032fd0
Commit
47032fd0
authored
Sep 29, 2007
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Oct 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Removed unused function get_child_text_node().
parent
fe534ddd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
65 deletions
+0
-65
editor.c
dlls/mshtml/editor.c
+0
-65
No files found.
dlls/mshtml/editor.c
View file @
47032fd0
...
...
@@ -385,71 +385,6 @@ static void set_font_size(HTMLDocument *This, LPCWSTR size)
nsIDOMDocument_Release
(
nsdoc
);
}
static
BOOL
is_visible_text_node
(
nsIDOMNode
*
node
)
{
nsIDOMCharacterData
*
char_data
;
nsAString
data_str
;
LPCWSTR
data
,
ptr
;
PRUint32
len
;
nsIDOMNode_QueryInterface
(
node
,
&
IID_nsIDOMCharacterData
,
(
void
**
)
&
char_data
);
nsIDOMCharacterData_GetLength
(
char_data
,
&
len
);
nsAString_Init
(
&
data_str
,
NULL
);
nsIDOMCharacterData_GetData
(
char_data
,
&
data_str
);
nsAString_GetData
(
&
data_str
,
&
data
,
NULL
);
if
(
*
data
==
'\n'
)
{
len
--
;
for
(
ptr
=
data
+
1
;
ptr
&&
isspaceW
(
*
ptr
);
ptr
++
)
len
--
;
}
nsAString_Finish
(
&
data_str
);
nsIDOMCharacterData_Release
(
char_data
);
return
len
!=
0
;
}
static
nsIDOMNode
*
get_child_text_node
(
nsIDOMNode
*
node
,
BOOL
first
)
{
nsIDOMNode
*
iter
,
*
iter2
;
if
(
first
)
nsIDOMNode_GetFirstChild
(
node
,
&
iter
);
else
nsIDOMNode_GetLastChild
(
node
,
&
iter
);
while
(
iter
)
{
PRUint16
node_type
;
nsIDOMNode_GetNodeType
(
iter
,
&
node_type
);
switch
(
node_type
)
{
case
TEXT_NODE
:
if
(
is_visible_text_node
(
iter
))
return
iter
;
case
ELEMENT_NODE
:
iter2
=
get_child_text_node
(
iter
,
first
);
if
(
iter2
)
{
nsIDOMNode_Release
(
iter
);
return
iter2
;
}
}
if
(
first
)
nsIDOMNode_GetNextSibling
(
iter
,
&
iter2
);
else
nsIDOMNode_GetPreviousSibling
(
iter
,
&
iter2
);
nsIDOMNode_Release
(
iter
);
iter
=
iter2
;
}
return
NULL
;
}
static
void
handle_arrow_key
(
HTMLDocument
*
This
,
nsIDOMKeyEvent
*
event
,
const
char
*
const
cmds
[
4
])
{
int
i
=
0
;
...
...
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