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
688cc96e
Commit
688cc96e
authored
Feb 09, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement HTMLStyleSheet_get_href().
parent
1f1d4048
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
htmlstylesheet.c
dlls/mshtml/htmlstylesheet.c
+8
-2
dom.c
dlls/mshtml/tests/dom.c
+8
-1
No files found.
dlls/mshtml/htmlstylesheet.c
View file @
688cc96e
...
...
@@ -552,8 +552,14 @@ static HRESULT WINAPI HTMLStyleSheet_put_href(IHTMLStyleSheet *iface, BSTR v)
static
HRESULT
WINAPI
HTMLStyleSheet_get_href
(
IHTMLStyleSheet
*
iface
,
BSTR
*
p
)
{
HTMLStyleSheet
*
This
=
impl_from_IHTMLStyleSheet
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
href_str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
href_str
,
NULL
);
nsres
=
nsIDOMCSSStyleSheet_GetHref
(
This
->
nsstylesheet
,
&
href_str
);
return
return_nsstr
(
nsres
,
&
href_str
,
p
);
}
static
HRESULT
WINAPI
HTMLStyleSheet_get_type
(
IHTMLStyleSheet
*
iface
,
BSTR
*
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
688cc96e
...
...
@@ -5958,6 +5958,7 @@ static void test_stylesheet(IDispatch *disp)
IHTMLStyleSheetRulesCollection
*
col
=
NULL
;
IHTMLStyleSheet
*
stylesheet
;
HRESULT
hres
;
BSTR
href
;
test_disp2
((
IUnknown
*
)
disp
,
&
DIID_DispHTMLStyleSheet
,
&
IID_IHTMLStyleSheet
,
"[object]"
);
...
...
@@ -5967,8 +5968,14 @@ static void test_stylesheet(IDispatch *disp)
hres
=
IHTMLStyleSheet_get_rules
(
stylesheet
,
&
col
);
ok
(
hres
==
S_OK
,
"get_rules failed: %08x
\n
"
,
hres
);
ok
(
col
!=
NULL
,
"col == NULL
\n
"
);
IHTMLStyleSheetRulesCollection_Release
(
col
);
href
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLStyleSheet_get_href
(
stylesheet
,
&
href
);
ok
(
hres
==
S_OK
,
"get_href failed: %08x
\n
"
,
hres
);
ok
(
href
==
NULL
,
"got href != NULL
\n
"
);
SysFreeString
(
href
);
IHTMLStyleSheet_Release
(
stylesheet
);
}
...
...
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