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
12aa9e33
Commit
12aa9e33
authored
May 10, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
May 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLBodyElement::CreateTextRange implementation.
parent
700ccaf7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
htmlbody.c
dlls/mshtml/htmlbody.c
+27
-2
nsiface.idl
dlls/mshtml/nsiface.idl
+10
-0
No files found.
dlls/mshtml/htmlbody.c
View file @
12aa9e33
...
...
@@ -395,8 +395,33 @@ static HRESULT WINAPI HTMLBodyElement_get_onbeforeunload(IHTMLBodyElement *iface
static
HRESULT
WINAPI
HTMLBodyElement_createTextRange
(
IHTMLBodyElement
*
iface
,
IHTMLTxtRange
**
range
)
{
HTMLBodyElement
*
This
=
HTMLBODY_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
range
);
return
E_NOTIMPL
;
nsIDOMRange
*
nsrange
=
NULL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
range
);
if
(
This
->
element
->
node
->
doc
->
nscontainer
)
{
nsIDOMDocument
*
nsdoc
;
nsIDOMDocumentRange
*
nsdocrange
;
nsresult
nsres
;
nsIWebNavigation_GetDocument
(
This
->
element
->
node
->
doc
->
nscontainer
->
navigation
,
&
nsdoc
);
nsIDOMDocument_QueryInterface
(
nsdoc
,
&
IID_nsIDOMDocumentRange
,
(
void
**
)
&
nsdocrange
);
nsIDOMDocument_Release
(
nsdoc
);
nsres
=
nsIDOMDocumentRange_CreateRange
(
nsdocrange
,
&
nsrange
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsres
=
nsIDOMRange_SelectNodeContents
(
nsrange
,
This
->
element
->
node
->
nsnode
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SelectNodeContents failed: %08x
\n
"
,
nsres
);
}
else
{
ERR
(
"CreateRange failed: %08x
\n
"
,
nsres
);
}
nsIDOMDocumentRange_Release
(
nsdocrange
);
}
*
range
=
HTMLTxtRange_Create
(
nsrange
);
return
S_OK
;
}
static
void
HTMLBodyElement_destructor
(
IUnknown
*
iface
)
...
...
dlls/mshtml/nsiface.idl
View file @
12aa9e33
...
...
@@ -687,6 +687,16 @@ interface nsIDOMRange : nsISupports
[
object,
uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b)
/* FROZEN */
]
interface nsIDOMDocumentRange : nsISupports
{
nsresult CreateRange(nsIDOMRange **_retval);
}
[
object,
uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1)
/* FROZEN */
]
...
...
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