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
1075118c
Commit
1075118c
authored
Oct 01, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLFrameBase_put_name().
parent
a82278c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
3 deletions
+46
-3
htmlframebase.c
dlls/mshtml/htmlframebase.c
+22
-2
dom.c
dlls/mshtml/tests/dom.c
+24
-1
No files found.
dlls/mshtml/htmlframebase.c
View file @
1075118c
...
...
@@ -148,8 +148,28 @@ static HRESULT WINAPI HTMLFrameBase_get_src(IHTMLFrameBase *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLFrameBase_put_name
(
IHTMLFrameBase
*
iface
,
BSTR
v
)
{
HTMLFrameBase
*
This
=
impl_from_IHTMLFrameBase
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
nsAString
name_str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
if
(
!
This
->
nsframe
&&
!
This
->
nsiframe
)
{
ERR
(
"No attached ns frame object
\n
"
);
return
E_UNEXPECTED
;
}
nsAString_InitDepend
(
&
name_str
,
v
);
if
(
This
->
nsframe
)
nsres
=
nsIDOMHTMLFrameElement_SetName
(
This
->
nsframe
,
&
name_str
);
else
nsres
=
nsIDOMHTMLIFrameElement_SetName
(
This
->
nsiframe
,
&
name_str
);
nsAString_Finish
(
&
name_str
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"SetName failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLFrameBase_get_name
(
IHTMLFrameBase
*
iface
,
BSTR
*
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
1075118c
...
...
@@ -4227,6 +4227,25 @@ static void _test_framebase_name(unsigned line, IHTMLElement *elem, const char *
IHTMLFrameBase_Release
(
fbase
);
}
#define test_framebase_put_name(a,b) _test_framebase_put_name(__LINE__,a,b)
static
void
_test_framebase_put_name
(
unsigned
line
,
IHTMLElement
*
elem
,
const
char
*
name
)
{
IHTMLFrameBase
*
fbase
;
HRESULT
hres
;
BSTR
str
;
hres
=
IHTMLElement_QueryInterface
(
elem
,
&
IID_IHTMLFrameBase
,
(
void
**
)
&
fbase
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLFrameBase interface: 0x%08x
\n
"
,
hres
);
str
=
name
?
a2bstr
(
name
)
:
NULL
;
hres
=
IHTMLFrameBase_put_name
(
fbase
,
str
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"put_name failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
_test_framebase_name
(
line
,
elem
,
name
);
IHTMLFrameBase_Release
(
fbase
);
}
static
void
test_framebase
(
IUnknown
*
unk
)
{
IHTMLFrameBase
*
fbase
;
...
...
@@ -6273,12 +6292,16 @@ static void test_frameset(IHTMLDocument2 *doc)
test_framebase
((
IUnknown
*
)
elem
);
test_framebase_name
(
elem
,
"nm1"
);
test_framebase_put_name
(
elem
,
"frame name"
);
test_framebase_put_name
(
elem
,
NULL
);
test_framebase_put_name
(
elem
,
"nm1"
);
IHTMLElement_Release
(
elem
);
/* get_name with no name attr */
elem
=
get_doc_elem_by_id
(
doc
,
"fr3"
);
test_framebase_name
(
elem
,
NULL
);
test_framebase_put_name
(
elem
,
"frame name"
);
test_framebase_put_name
(
elem
,
NULL
);
IHTMLElement_Release
(
elem
);
IHTMLWindow2_Release
(
window
);
...
...
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