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
dbe0de73
Commit
dbe0de73
authored
Aug 11, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved TASK_PARSECOMPLETE to nsIMutationObserver::EndLoad.
parent
862bd3c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
30 deletions
+16
-30
mutation.c
dlls/mshtml/mutation.c
+16
-0
navigate.c
dlls/mshtml/navigate.c
+0
-17
nsevents.c
dlls/mshtml/nsevents.c
+0
-13
No files found.
dlls/mshtml/mutation.c
View file @
dbe0de73
...
...
@@ -461,6 +461,22 @@ static void NSAPI nsDocumentObserver_BeginLoad(nsIDocumentObserver *iface, nsIDo
static
void
NSAPI
nsDocumentObserver_EndLoad
(
nsIDocumentObserver
*
iface
,
nsIDocument
*
aDocument
)
{
NSContainer
*
This
=
NSDOCOBS_THIS
(
iface
);
task_t
*
task
;
TRACE
(
"
\n
"
);
task
=
heap_alloc
(
sizeof
(
task_t
));
task
->
doc
=
This
->
doc
;
task
->
task_id
=
TASK_PARSECOMPLETE
;
task
->
next
=
NULL
;
/*
* 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
);
}
static
void
NSAPI
nsDocumentObserver_ContentStatesChanged
(
nsIDocumentObserver
*
iface
,
nsIDocument
*
aDocument
,
...
...
dlls/mshtml/navigate.c
View file @
dbe0de73
...
...
@@ -978,23 +978,6 @@ static HRESULT nsChannelBSC_stop_binding(BSCallback *bsc, HRESULT result)
}
}
if
(
FAILED
(
result
))
return
S_OK
;
if
(
This
->
bsc
.
doc
&&
This
->
bsc
.
doc
->
bscallback
==
This
&&
!
This
->
bsc
.
doc
->
nscontainer
)
{
task_t
*
task
=
heap_alloc
(
sizeof
(
task_t
));
task
->
doc
=
This
->
bsc
.
doc
;
task
->
task_id
=
TASK_PARSECOMPLETE
;
task
->
next
=
NULL
;
/*
* This should be done in the worker thread that parses HTML,
* but we don't have such thread.
*/
push_task
(
task
);
}
return
S_OK
;
}
...
...
dlls/mshtml/nsevents.c
View file @
dbe0de73
...
...
@@ -131,7 +131,6 @@ static nsresult NSAPI handle_load(nsIDOMEventListener *iface, nsIDOMEvent *event
{
NSContainer
*
This
=
NSEVENTLIST_THIS
(
iface
)
->
This
;
nsIDOMHTMLElement
*
nsbody
=
NULL
;
task_t
*
task
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -149,18 +148,6 @@ static nsresult NSAPI handle_load(nsIDOMEventListener *iface, nsIDOMEvent *event
if
(
This
->
doc
->
usermode
==
EDITMODE
)
handle_edit_load
(
This
->
doc
);
task
=
heap_alloc
(
sizeof
(
task_t
));
task
->
doc
=
This
->
doc
;
task
->
task_id
=
TASK_PARSECOMPLETE
;
task
->
next
=
NULL
;
/*
* 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
);
if
(
!
This
->
doc
->
nsdoc
)
{
ERR
(
"NULL nsdoc
\n
"
);
return
NS_ERROR_FAILURE
;
...
...
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