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
8507db18
Commit
8507db18
authored
Aug 18, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Avoid asynchronous parse_complete call.
parent
d607976a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
21 deletions
+8
-21
mutation.c
dlls/mshtml/mutation.c
+8
-21
No files found.
dlls/mshtml/mutation.c
View file @
8507db18
...
...
@@ -312,10 +312,8 @@ static void call_explorer_69(HTMLDocumentObj *doc)
FIXME
(
"handle result
\n
"
);
}
static
void
parse_complete
_proc
(
task_t
*
task
)
static
void
parse_complete
(
HTMLDocumentObj
*
doc
)
{
HTMLDocumentObj
*
doc
=
((
docobj_task_t
*
)
task
)
->
doc
;
TRACE
(
"(%p)
\n
"
,
doc
);
if
(
doc
->
usermode
==
EDITMODE
)
...
...
@@ -328,35 +326,24 @@ static void parse_complete_proc(task_t *task)
call_explorer_69
(
doc
);
/* FIXME: IE7 calls EnableModelless(TRUE), EnableModelless(FALSE) and sets interactive state here */
set_ready_state
(
doc
->
basedoc
.
window
,
READYSTATE_INTERACTIVE
);
}
static
void
handle_end_load
(
HTMLDocumentNode
*
This
)
{
docobj_task_t
*
task
;
TRACE
(
"
\n
"
);
if
(
!
This
->
basedoc
.
doc_obj
)
return
;
if
(
This
!=
This
->
basedoc
.
doc_obj
->
basedoc
.
doc_node
)
{
set_ready_state
(
This
->
basedoc
.
window
,
READYSTATE_INTERACTIVE
);
return
;
if
(
This
==
This
->
basedoc
.
doc_obj
->
basedoc
.
doc_node
)
{
/*
* This should be done in the worker thread that parses HTML,
* but we don't have such thread (Gecko parses HTML for us).
*/
parse_complete
(
This
->
basedoc
.
doc_obj
);
}
task
=
heap_alloc
(
sizeof
(
docobj_task_t
));
if
(
!
task
)
return
;
task
->
doc
=
This
->
basedoc
.
doc_obj
;
/*
* This should be done in the worker thread that parses HTML,
* but we don't have such thread (Gecko parses HTML for us).
*/
push_task
(
&
task
->
header
,
&
parse_complete_proc
,
This
->
basedoc
.
doc_obj
->
basedoc
.
task_magic
);
set_ready_state
(
This
->
basedoc
.
window
,
READYSTATE_INTERACTIVE
);
}
static
nsresult
NSAPI
nsRunnable_Run
(
nsIRunnable
*
iface
)
...
...
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