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
ac2aeb6e
Commit
ac2aeb6e
authored
Sep 24, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added PARSECOMPLETE task implementation.
parent
ccd33999
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
+57
-0
navigate.c
dlls/mshtml/navigate.c
+14
-0
task.c
dlls/mshtml/task.c
+43
-0
No files found.
dlls/mshtml/navigate.c
View file @
ac2aeb6e
...
...
@@ -333,6 +333,20 @@ static HRESULT WINAPI BindStatusCallback_OnStopBinding(IBindStatusCallback *ifac
}
}
if
(
This
->
doc
)
{
task_t
*
task
=
mshtml_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
);
}
return
S_OK
;
}
...
...
dlls/mshtml/task.c
View file @
ac2aeb6e
...
...
@@ -123,11 +123,54 @@ static void set_downloading(HTMLDocument *doc)
}
}
static
void
set_parsecomplete
(
HTMLDocument
*
doc
)
{
IOleCommandTarget
*
olecmd
;
HRESULT
hres
;
TRACE
(
"(%p)
\n
"
,
doc
);
call_property_onchanged
(
doc
->
cp_propnotif
,
1005
);
call_property_onchanged
(
doc
->
cp_propnotif
,
DISPID_READYSTATE
);
if
(
!
doc
->
client
)
return
;
hres
=
IOleClientSite_QueryInterface
(
doc
->
client
,
&
IID_IOleCommandTarget
,
(
void
**
)
&
olecmd
);
if
(
SUCCEEDED
(
hres
))
{
VARIANT
state
,
title
,
progress
;
WCHAR
empty
[]
=
{
0
};
V_VT
(
&
progress
)
=
VT_I4
;
V_I4
(
&
progress
)
=
0
;
IOleCommandTarget_Exec
(
olecmd
,
NULL
,
OLECMDID_SETPROGRESSPOS
,
OLECMDEXECOPT_DONTPROMPTUSER
,
&
progress
,
NULL
);
V_VT
(
&
state
)
=
VT_I4
;
V_I4
(
&
state
)
=
0
;
IOleCommandTarget_Exec
(
olecmd
,
NULL
,
OLECMDID_SETDOWNLOADSTATE
,
OLECMDEXECOPT_DONTPROMPTUSER
,
&
state
,
NULL
);
IOleCommandTarget_Exec
(
olecmd
,
&
CGID_MSHTML
,
IDM_PARSECOMPLETE
,
0
,
NULL
,
NULL
);
IOleCommandTarget_Exec
(
olecmd
,
NULL
,
OLECMDID_HTTPEQUIV_DONE
,
0
,
NULL
,
NULL
);
V_VT
(
&
title
)
=
VT_BSTR
;
V_BSTR
(
&
title
)
=
SysAllocString
(
empty
);
IOleCommandTarget_Exec
(
olecmd
,
NULL
,
OLECMDID_SETTITLE
,
OLECMDEXECOPT_DONTPROMPTUSER
,
&
title
,
NULL
);
SysFreeString
(
V_BSTR
(
&
title
));
IOleCommandTarget_Release
(
olecmd
);
}
}
static
void
process_task
(
task_t
*
task
)
{
switch
(
task
->
task_id
)
{
case
TASK_SETDOWNLOADSTATE
:
return
set_downloading
(
task
->
doc
);
case
TASK_PARSECOMPLETE
:
return
set_parsecomplete
(
task
->
doc
);
default:
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