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
e65e5348
Commit
e65e5348
authored
Sep 26, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use get_nsinterface in set_ns_editmode and get_editor_controller.
parent
cf403fa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
22 deletions
+4
-22
nsembed.c
dlls/mshtml/nsembed.c
+4
-22
No files found.
dlls/mshtml/nsembed.c
View file @
e65e5348
...
...
@@ -647,7 +647,6 @@ void nsnode_to_nsstring(nsIDOMNode *nsdoc, nsAString *str)
void
get_editor_controller
(
NSContainer
*
This
)
{
nsIEditingSession
*
editing_session
=
NULL
;
nsIInterfaceRequestor
*
iface_req
;
nsIControllerContext
*
ctrlctx
;
nsresult
nsres
;
...
...
@@ -661,16 +660,8 @@ void get_editor_controller(NSContainer *This)
This
->
editor_controller
=
NULL
;
}
nsres
=
nsIWebBrowser_QueryInterface
(
This
->
webbrowser
,
&
IID_nsIInterfaceRequestor
,
(
void
**
)
&
iface_req
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIInterfaceRequestor: %08x
\n
"
,
nsres
);
return
;
}
nsres
=
nsIInterfaceRequestor_GetInterface
(
iface_req
,
&
IID_nsIEditingSession
,
(
void
**
)
&
editing_session
);
nsIInterfaceRequestor_Release
(
iface_req
);
nsres
=
get_nsinterface
((
nsISupports
*
)
This
->
webbrowser
,
&
IID_nsIEditingSession
,
(
void
**
)
&
editing_session
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIEditingSession: %08x
\n
"
,
nsres
);
return
;
...
...
@@ -702,22 +693,13 @@ void get_editor_controller(NSContainer *This)
void
set_ns_editmode
(
NSContainer
*
This
)
{
nsIInterfaceRequestor
*
iface_req
;
nsIEditingSession
*
editing_session
=
NULL
;
nsIURIContentListener
*
listener
=
NULL
;
nsIDOMWindow
*
dom_window
=
NULL
;
nsresult
nsres
;
nsres
=
nsIWebBrowser_QueryInterface
(
This
->
webbrowser
,
&
IID_nsIInterfaceRequestor
,
(
void
**
)
&
iface_req
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIInterfaceRequestor: %08x
\n
"
,
nsres
);
return
;
}
nsres
=
nsIInterfaceRequestor_GetInterface
(
iface_req
,
&
IID_nsIEditingSession
,
(
void
**
)
&
editing_session
);
nsIInterfaceRequestor_Release
(
iface_req
);
nsres
=
get_nsinterface
((
nsISupports
*
)
This
->
webbrowser
,
&
IID_nsIEditingSession
,
(
void
**
)
&
editing_session
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIEditingSession: %08x
\n
"
,
nsres
);
return
;
...
...
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