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
aadd0774
Commit
aadd0774
authored
Sep 16, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved undomgr to HTMLDocumentObj.
parent
0d15ad8b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
htmldoc.c
dlls/mshtml/htmldoc.c
+2
-3
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-2
service.c
dlls/mshtml/service.c
+4
-6
No files found.
dlls/mshtml/htmldoc.c
View file @
aadd0774
...
...
@@ -1764,9 +1764,6 @@ static void destroy_htmldoc(HTMLDocument *This)
{
remove_doc_tasks
(
This
);
if
(
This
->
undomgr
)
IOleUndoManager_Release
(
This
->
undomgr
);
set_document_bscallback
(
This
,
NULL
);
set_current_mon
(
This
,
NULL
);
...
...
@@ -1899,6 +1896,8 @@ static ULONG HTMLDocumentObj_Release(HTMLDocument *base)
IOleInPlaceObjectWindowless_InPlaceDeactivate
(
INPLACEWIN
(
&
This
->
basedoc
));
if
(
This
->
ipsite
)
IOleDocumentView_SetInPlaceSite
(
DOCVIEW
(
&
This
->
basedoc
),
NULL
);
if
(
This
->
undomgr
)
IOleUndoManager_Release
(
This
->
undomgr
);
destroy_htmldoc
(
&
This
->
basedoc
);
if
(
This
->
basedoc
.
nsdoc
)
remove_mutation_observer
(
This
->
nscontainer
,
This
->
basedoc
.
nsdoc
);
...
...
dlls/mshtml/mshtml_private.h
View file @
aadd0774
...
...
@@ -284,8 +284,6 @@ struct HTMLDocument {
HTMLWindow
*
window
;
nsIDOMHTMLDocument
*
nsdoc
;
IOleUndoManager
*
undomgr
;
nsChannelBSC
*
bscallback
;
IMoniker
*
mon
;
LPOLESTR
url
;
...
...
@@ -354,6 +352,8 @@ struct HTMLDocumentObj {
IOleInPlaceSite
*
ipsite
;
IOleInPlaceFrame
*
frame
;
IOleInPlaceUIWindow
*
ip_window
;
IOleUndoManager
*
undomgr
;
};
typedef
struct
{
...
...
dlls/mshtml/service.c
View file @
aadd0774
...
...
@@ -240,11 +240,11 @@ static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFG
if
(
IsEqualGUID
(
&
IID_IOleUndoManager
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleUndoManager %p)
\n
"
,
This
,
ppv
);
if
(
!
This
->
undomgr
)
This
->
undomgr
=
create_undomgr
();
if
(
!
This
->
doc_obj
->
undomgr
)
This
->
doc_obj
->
undomgr
=
create_undomgr
();
IOleUndoManager_AddRef
(
This
->
undomgr
);
*
ppv
=
This
->
undomgr
;
IOleUndoManager_AddRef
(
This
->
doc_obj
->
undomgr
);
*
ppv
=
This
->
doc_obj
->
undomgr
;
return
S_OK
;
}
...
...
@@ -263,6 +263,4 @@ static const IServiceProviderVtbl ServiceProviderVtbl = {
void
HTMLDocument_Service_Init
(
HTMLDocument
*
This
)
{
This
->
lpServiceProviderVtbl
=
&
ServiceProviderVtbl
;
This
->
undomgr
=
NULL
;
}
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