Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b962fff2
Commit
b962fff2
authored
Dec 09, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Associate PluginHost with containing HTMLDocumentDode.
parent
d9dcafab
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
3 deletions
+26
-3
htmldoc.c
dlls/mshtml/htmldoc.c
+3
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
npplugin.c
dlls/mshtml/npplugin.c
+1
-1
pluginhost.c
dlls/mshtml/pluginhost.c
+16
-1
pluginhost.h
dlls/mshtml/pluginhost.h
+5
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
b962fff2
...
...
@@ -35,6 +35,7 @@
#include "mshtml_private.h"
#include "htmlevent.h"
#include "pluginhost.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
...
...
@@ -1897,6 +1898,7 @@ static void HTMLDocumentNode_destructor(HTMLDOMNode *iface)
detach_selection
(
This
);
detach_ranges
(
This
);
detach_plugin_hosts
(
This
);
release_nodes
(
This
);
if
(
This
->
nsdoc
)
{
...
...
@@ -1982,6 +1984,7 @@ static HTMLDocumentNode *alloc_doc_node(HTMLDocumentObj *doc_obj, HTMLWindow *wi
list_init
(
&
doc
->
bindings
);
list_init
(
&
doc
->
selection_list
);
list_init
(
&
doc
->
range_list
);
list_init
(
&
doc
->
plugin_hosts
);
return
doc
;
}
...
...
dlls/mshtml/mshtml_private.h
View file @
b962fff2
...
...
@@ -618,6 +618,7 @@ struct HTMLDocumentNode {
struct
list
bindings
;
struct
list
selection_list
;
struct
list
range_list
;
struct
list
plugin_hosts
;
};
#define HTMLWINDOW2(x) ((IHTMLWindow2*) &(x)->lpHTMLWindow2Vtbl)
...
...
dlls/mshtml/npplugin.c
View file @
b962fff2
...
...
@@ -272,7 +272,7 @@ static NPError CDECL NPP_New(NPMIMEType pluginType, NPP instance, UINT16 mode, I
PluginHost
*
host
;
HRESULT
hres
;
hres
=
create_plugin_host
(
obj
,
&
host
);
hres
=
create_plugin_host
(
window
->
doc
,
obj
,
&
host
);
nsIDOMElement_Release
(
nselem
);
IUnknown_Release
(
obj
);
if
(
SUCCEEDED
(
hres
))
...
...
dlls/mshtml/pluginhost.c
View file @
b962fff2
...
...
@@ -160,6 +160,7 @@ static ULONG WINAPI PHClientSite_Release(IOleClientSite *iface)
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
list_remove
(
&
This
->
entry
);
if
(
This
->
plugin_unk
)
IUnknown_Release
(
This
->
plugin_unk
);
heap_free
(
This
);
...
...
@@ -731,7 +732,18 @@ static const IServiceProviderVtbl ServiceProviderVtbl = {
PHServiceProvider_QueryService
};
HRESULT
create_plugin_host
(
IUnknown
*
unk
,
PluginHost
**
ret
)
void
detach_plugin_hosts
(
HTMLDocumentNode
*
doc
)
{
PluginHost
*
iter
;
while
(
!
list_empty
(
&
doc
->
plugin_hosts
))
{
iter
=
LIST_ENTRY
(
list_head
(
&
doc
->
plugin_hosts
),
PluginHost
,
entry
);
list_remove
(
&
iter
->
entry
);
iter
->
doc
=
NULL
;
}
}
HRESULT
create_plugin_host
(
HTMLDocumentNode
*
doc
,
IUnknown
*
unk
,
PluginHost
**
ret
)
{
PluginHost
*
host
;
...
...
@@ -753,6 +765,9 @@ HRESULT create_plugin_host(IUnknown *unk, PluginHost **ret)
IUnknown_AddRef
(
unk
);
host
->
plugin_unk
=
unk
;
host
->
doc
=
doc
;
list_add_tail
(
&
doc
->
plugin_hosts
,
&
host
->
entry
);
*
ret
=
host
;
return
S_OK
;
}
dlls/mshtml/pluginhost.h
View file @
b962fff2
...
...
@@ -32,7 +32,11 @@ typedef struct {
IUnknown
*
plugin_unk
;
HWND
hwnd
;
HTMLDocumentNode
*
doc
;
struct
list
entry
;
}
PluginHost
;
HRESULT
create_plugin_host
(
IUnknown
*
,
PluginHost
**
);
HRESULT
create_plugin_host
(
HTMLDocumentNode
*
,
IUnknown
*
,
PluginHost
**
);
void
update_plugin_window
(
PluginHost
*
,
HWND
,
const
RECT
*
);
void
detach_plugin_hosts
(
HTMLDocumentNode
*
);
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