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
124cb449
Commit
124cb449
authored
Feb 10, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Start binding asynchronously.
parent
48b445b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
mshtml_private.h
dlls/mshtml/mshtml_private.h
+4
-1
nsio.c
dlls/mshtml/nsio.c
+9
-2
task.c
dlls/mshtml/task.c
+8
-0
No files found.
dlls/mshtml/mshtml_private.h
View file @
124cb449
...
@@ -386,9 +386,12 @@ typedef struct task_t {
...
@@ -386,9 +386,12 @@ typedef struct task_t {
enum
{
enum
{
TASK_SETDOWNLOADSTATE
,
TASK_SETDOWNLOADSTATE
,
TASK_PARSECOMPLETE
,
TASK_PARSECOMPLETE
,
TASK_SETPROGRESS
TASK_SETPROGRESS
,
TASK_START_BINDING
}
task_id
;
}
task_id
;
BSCallback
*
bscallback
;
struct
task_t
*
next
;
struct
task_t
*
next
;
}
task_t
;
}
task_t
;
...
...
dlls/mshtml/nsio.c
View file @
124cb449
...
@@ -605,6 +605,7 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
...
@@ -605,6 +605,7 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
PRBool
is_doc_uri
;
PRBool
is_doc_uri
;
LPCWSTR
wine_url
;
LPCWSTR
wine_url
;
nsresult
nsres
;
nsresult
nsres
;
task_t
*
task
;
HRESULT
hres
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
aListener
,
aContext
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
aListener
,
aContext
);
...
@@ -718,8 +719,14 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
...
@@ -718,8 +719,14 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
bscallback
->
nscontext
=
aContext
;
bscallback
->
nscontext
=
aContext
;
}
}
start_binding
(
bscallback
);
task
=
mshtml_alloc
(
sizeof
(
task_t
));
IBindStatusCallback_Release
(
STATUSCLB
(
bscallback
));
task
->
doc
=
bscallback
->
doc
;
task
->
task_id
=
TASK_START_BINDING
;
task
->
next
=
NULL
;
task
->
bscallback
=
bscallback
;
push_task
(
task
);
return
NS_OK
;
return
NS_OK
;
}
}
...
...
dlls/mshtml/task.c
View file @
124cb449
...
@@ -217,6 +217,12 @@ static void set_progress(HTMLDocument *doc)
...
@@ -217,6 +217,12 @@ static void set_progress(HTMLDocument *doc)
}
}
}
}
static
void
task_start_binding
(
BSCallback
*
bscallback
)
{
start_binding
(
bscallback
);
IBindStatusCallback_Release
(
STATUSCLB
(
bscallback
));
}
static
void
process_task
(
task_t
*
task
)
static
void
process_task
(
task_t
*
task
)
{
{
switch
(
task
->
task_id
)
{
switch
(
task
->
task_id
)
{
...
@@ -226,6 +232,8 @@ static void process_task(task_t *task)
...
@@ -226,6 +232,8 @@ static void process_task(task_t *task)
return
set_parsecomplete
(
task
->
doc
);
return
set_parsecomplete
(
task
->
doc
);
case
TASK_SETPROGRESS
:
case
TASK_SETPROGRESS
:
return
set_progress
(
task
->
doc
);
return
set_progress
(
task
->
doc
);
case
TASK_START_BINDING
:
return
task_start_binding
(
task
->
bscallback
);
default:
default:
ERR
(
"Wrong task_id %d
\n
"
,
task
->
task_id
);
ERR
(
"Wrong task_id %d
\n
"
,
task
->
task_id
);
}
}
...
...
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