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
0abe9939
Commit
0abe9939
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 SetDesignMode call to create_document_node.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3f79f129
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
htmldoc.c
dlls/mshtml/htmldoc.c
+13
-0
htmlwindow.c
dlls/mshtml/htmlwindow.c
+0
-13
No files found.
dlls/mshtml/htmldoc.c
View file @
0abe9939
...
...
@@ -5202,6 +5202,19 @@ HRESULT create_document_node(nsIDOMHTMLDocument *nsdoc, GeckoBrowser *browser, H
list_add_head
(
&
browser
->
document_nodes
,
&
doc
->
browser_entry
);
doc
->
browser
=
browser
;
if
(
browser
->
usermode
==
EDITMODE
)
{
nsAString
mode_str
;
nsresult
nsres
;
static
const
PRUnichar
onW
[]
=
{
'o'
,
'n'
,
0
};
nsAString_InitDepend
(
&
mode_str
,
onW
);
nsres
=
nsIDOMHTMLDocument_SetDesignMode
(
doc
->
nsdoc
,
&
mode_str
);
nsAString_Finish
(
&
mode_str
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetDesignMode failed: %08x
\n
"
,
nsres
);
}
*
ret
=
doc
;
return
S_OK
;
}
...
...
dlls/mshtml/htmlwindow.c
View file @
0abe9939
...
...
@@ -3641,19 +3641,6 @@ HRESULT update_window_doc(HTMLInnerWindow *window)
if
(
FAILED
(
hres
))
return
hres
;
if
(
outer_window
->
browser
->
usermode
==
EDITMODE
)
{
nsAString
mode_str
;
nsresult
nsres
;
static
const
PRUnichar
onW
[]
=
{
'o'
,
'n'
,
0
};
nsAString_InitDepend
(
&
mode_str
,
onW
);
nsres
=
nsIDOMHTMLDocument_SetDesignMode
(
window
->
doc
->
nsdoc
,
&
mode_str
);
nsAString_Finish
(
&
mode_str
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetDesignMode failed: %08x
\n
"
,
nsres
);
}
if
(
window
!=
outer_window
->
pending_window
)
{
ERR
(
"not current pending window
\n
"
);
return
S_OK
;
...
...
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