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
ff0d147b
Commit
ff0d147b
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: Use stored HTMLWindow in get_selection implementation.
parent
11eb1b08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
htmldoc.c
dlls/mshtml/htmldoc.c
+6
-9
No files found.
dlls/mshtml/htmldoc.c
View file @
ff0d147b
...
...
@@ -417,18 +417,15 @@ static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p
static
HRESULT
WINAPI
HTMLDocument_get_selection
(
IHTMLDocument2
*
iface
,
IHTMLSelectionObject
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
nsISelection
*
nsselection
=
NULL
;
nsISelection
*
nsselection
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
This
->
nscontainer
)
{
nsIDOMWindow
*
dom_window
=
NULL
;
nsIWebBrowser_GetContentDOMWindow
(
This
->
nscontainer
->
webbrowser
,
&
dom_window
);
if
(
dom_window
)
{
nsIDOMWindow_GetSelection
(
dom_window
,
&
nsselection
);
nsIDOMWindow_Release
(
dom_window
);
}
nsres
=
nsIDOMWindow_GetSelection
(
This
->
window
->
nswindow
,
&
nsselection
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetSelection failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
*
p
=
HTMLSelectionObject_Create
(
This
,
nsselection
);
...
...
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