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
62c0c7b1
Commit
62c0c7b1
authored
Oct 11, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLStyleElement::get_styleSheet imeplementation.
parent
45b29f95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
3 deletions
+39
-3
htmlstyleelem.c
dlls/mshtml/htmlstyleelem.c
+39
-3
No files found.
dlls/mshtml/htmlstyleelem.c
View file @
62c0c7b1
...
...
@@ -39,6 +39,7 @@ typedef struct {
IHTMLStyleElement
IHTMLStyleElement_iface
;
nsIDOMHTMLStyleElement
*
nsstyle
;
IHTMLStyleSheet
*
style_sheet
;
}
HTMLStyleElement
;
static
inline
HTMLStyleElement
*
impl_from_IHTMLStyleElement
(
IHTMLStyleElement
*
iface
)
...
...
@@ -183,8 +184,31 @@ static HRESULT WINAPI HTMLStyleElement_get_onerror(IHTMLStyleElement *iface, VAR
static
HRESULT
WINAPI
HTMLStyleElement_get_styleSheet
(
IHTMLStyleElement
*
iface
,
IHTMLStyleSheet
**
p
)
{
HTMLStyleElement
*
This
=
impl_from_IHTMLStyleElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
This
->
nsstyle
)
return
E_FAIL
;
if
(
!
This
->
style_sheet
)
{
nsIDOMStyleSheet
*
ss
;
nsresult
nsres
;
nsres
=
nsIDOMHTMLStyleElement_GetDOMStyleSheet
(
This
->
nsstyle
,
&
ss
);
assert
(
nsres
==
NS_OK
);
if
(
ss
)
{
This
->
style_sheet
=
HTMLStyleSheet_Create
(
ss
);
nsIDOMStyleSheet_Release
(
ss
);
if
(
!
This
->
style_sheet
)
return
E_OUTOFMEMORY
;
}
}
if
(
This
->
style_sheet
)
IHTMLStyleSheet_AddRef
(
This
->
style_sheet
);
*
p
=
This
->
style_sheet
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLStyleElement_put_disabled
(
IHTMLStyleElement
*
iface
,
VARIANT_BOOL
v
)
...
...
@@ -283,9 +307,21 @@ static HRESULT HTMLStyleElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
return
S_OK
;
}
static
void
HTMLStyleElement_destructor
(
HTMLDOMNode
*
iface
)
{
HTMLStyleElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
style_sheet
)
{
IHTMLStyleSheet_Release
(
This
->
style_sheet
);
This
->
style_sheet
=
NULL
;
}
HTMLElement_destructor
(
iface
);
}
static
const
NodeImplVtbl
HTMLStyleElementImplVtbl
=
{
HTMLStyleElement_QI
,
HTMLElement_destructor
,
HTML
Style
Element_destructor
,
HTMLElement_clone
,
HTMLElement_handle_event
,
HTMLElement_get_attr_col
...
...
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