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
1ea4924e
Commit
1ea4924e
authored
Mar 12, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Move IsDirty implementation to GeckoBrowser.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
53e095c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
editor.c
dlls/mshtml/editor.c
+3
-4
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
persist.c
dlls/mshtml/persist.c
+1
-4
No files found.
dlls/mshtml/editor.c
View file @
1ea4924e
...
...
@@ -1223,15 +1223,14 @@ void init_editor(HTMLDocument *This)
set_ns_fontname
(
This
,
"Times New Roman"
);
}
HRESULT
editor_is_dirty
(
HTMLDocument
*
This
)
HRESULT
browser_is_dirty
(
GeckoBrowser
*
browser
)
{
cpp_bool
modified
;
if
(
!
This
->
doc_obj
->
nscontainer
||
!
This
->
doc_obj
->
nscontain
er
->
editor
)
if
(
browser
->
usermode
!=
EDITMODE
||
!
brows
er
->
editor
)
return
S_FALSE
;
nsIEditor_GetDocumentModified
(
This
->
doc_obj
->
nscontainer
->
editor
,
&
modified
);
nsIEditor_GetDocumentModified
(
browser
->
editor
,
&
modified
);
return
modified
?
S_OK
:
S_FALSE
;
}
...
...
dlls/mshtml/mshtml_private.h
View file @
1ea4924e
...
...
@@ -1141,7 +1141,7 @@ HRESULT editor_exec_copy(HTMLDocument*,DWORD,VARIANT*,VARIANT*) DECLSPEC_HIDDEN;
HRESULT
editor_exec_cut
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
editor_exec_paste
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
void
handle_edit_load
(
HTMLDocument
*
)
DECLSPEC_HIDDEN
;
HRESULT
editor_is_dirty
(
HTMLDocument
*
)
DECLSPEC_HIDDEN
;
HRESULT
browser_is_dirty
(
GeckoBrowser
*
)
DECLSPEC_HIDDEN
;
void
set_dirty
(
GeckoBrowser
*
,
VARIANT_BOOL
)
DECLSPEC_HIDDEN
;
extern
DWORD
mshtml_tls
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/persist.c
View file @
1ea4924e
...
...
@@ -884,10 +884,7 @@ static HRESULT WINAPI PersistStreamInit_IsDirty(IPersistStreamInit *iface)
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
doc_obj
->
nscontainer
->
usermode
==
EDITMODE
)
return
editor_is_dirty
(
This
);
return
S_FALSE
;
return
browser_is_dirty
(
This
->
doc_obj
->
nscontainer
);
}
static
HRESULT
WINAPI
PersistStreamInit_Load
(
IPersistStreamInit
*
iface
,
IStream
*
pStm
)
...
...
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