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
96efe799
Commit
96efe799
authored
Dec 17, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLScriptElement::get_scr implementation.
parent
f01d831b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
2 deletions
+38
-2
htmlscript.c
dlls/mshtml/htmlscript.c
+8
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
nsembed.c
dlls/mshtml/nsembed.c
+24
-0
dom.c
dlls/mshtml/tests/dom.c
+5
-0
No files found.
dlls/mshtml/htmlscript.c
View file @
96efe799
...
...
@@ -106,8 +106,14 @@ static HRESULT WINAPI HTMLScriptElement_put_src(IHTMLScriptElement *iface, BSTR
static
HRESULT
WINAPI
HTMLScriptElement_get_src
(
IHTMLScriptElement
*
iface
,
BSTR
*
p
)
{
HTMLScriptElement
*
This
=
impl_from_IHTMLScriptElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
src_str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
src_str
,
NULL
);
nsres
=
nsIDOMHTMLScriptElement_GetSrc
(
This
->
nsscript
,
&
src_str
);
return
return_nsstr
(
nsres
,
&
src_str
,
p
);
}
static
HRESULT
WINAPI
HTMLScriptElement_put_htmlFor
(
IHTMLScriptElement
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/mshtml_private.h
View file @
96efe799
...
...
@@ -781,6 +781,7 @@ void nsAString_InitDepend(nsAString*,const PRUnichar*);
void
nsAString_SetData
(
nsAString
*
,
const
PRUnichar
*
);
PRUint32
nsAString_GetData
(
const
nsAString
*
,
const
PRUnichar
**
);
void
nsAString_Finish
(
nsAString
*
);
HRESULT
return_nsstr
(
nsresult
,
nsAString
*
,
BSTR
*
);
nsICommandParams
*
create_nscommand_params
(
void
);
HRESULT
nsnode_to_nsstring
(
nsIDOMNode
*
,
nsAString
*
);
...
...
dlls/mshtml/nsembed.c
View file @
96efe799
...
...
@@ -733,6 +733,30 @@ void nsAString_Finish(nsAString *str)
NS_StringContainerFinish
(
str
);
}
HRESULT
return_nsstr
(
nsresult
nsres
,
nsAString
*
nsstr
,
BSTR
*
p
)
{
const
PRUnichar
*
str
;
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"failed: %08x
\n
"
,
nsres
);
nsAString_Finish
(
nsstr
);
return
E_FAIL
;
}
nsAString_GetData
(
nsstr
,
&
str
);
TRACE
(
"ret %s
\n
"
,
debugstr_w
(
str
));
if
(
*
str
)
{
*
p
=
SysAllocString
(
str
);
if
(
!*
p
)
return
E_OUTOFMEMORY
;
}
else
{
*
p
=
NULL
;
}
nsAString_Finish
(
nsstr
);
return
S_OK
;
}
nsICommandParams
*
create_nscommand_params
(
void
)
{
nsICommandParams
*
ret
=
NULL
;
...
...
dlls/mshtml/tests/dom.c
View file @
96efe799
...
...
@@ -6211,6 +6211,11 @@ static void test_elems(IHTMLDocument2 *doc)
hres
=
IHTMLScriptElement_put_defer
(
script
,
VARIANT_FALSE
);
ok
(
hres
==
S_OK
,
"put_defer failed: %08x
\n
"
,
hres
);
str
=
(
BSTR
)
0xdeadbeef
;
hres
=
IHTMLScriptElement_get_src
(
script
,
&
str
);
ok
(
hres
==
S_OK
,
"get_src failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"src = %s
\n
"
,
wine_dbgstr_w
(
str
));
}
IHTMLScriptElement_Release
(
script
);
...
...
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