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
ec2461f7
Commit
ec2461f7
authored
Sep 15, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Traverse and unlink StyleElements using the dispex.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
d66560c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
htmlstyleelem.c
dlls/mshtml/htmlstyleelem.c
+22
-8
No files found.
dlls/mshtml/htmlstyleelem.c
View file @
ec2461f7
...
...
@@ -389,17 +389,24 @@ static void HTMLStyleElement_destructor(HTMLDOMNode *iface)
HTMLElement_destructor
(
iface
);
}
static
void
HTMLStyleElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
static
inline
HTMLStyleElement
*
impl_from_DispatchEx
(
DispatchEx
*
iface
)
{
HTMLStyleElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
return
CONTAINING_RECORD
(
iface
,
HTMLStyleElement
,
element
.
node
.
event_target
.
dispex
);
}
static
void
HTMLStyleElement_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLStyleElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_traverse
(
dispex
,
cb
);
if
(
This
->
nsstyle
)
note_cc_edge
((
nsISupports
*
)
This
->
nsstyle
,
"
This->
nsstyle"
,
cb
);
note_cc_edge
((
nsISupports
*
)
This
->
nsstyle
,
"nsstyle"
,
cb
);
}
static
void
HTMLStyleElement_unlink
(
HTMLDOMNode
*
iface
)
static
void
HTMLStyleElement_unlink
(
DispatchEx
*
dispex
)
{
HTMLStyleElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLStyleElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLDOMNode_unlink
(
dispex
);
unlink_ref
(
&
This
->
nsstyle
);
}
...
...
@@ -428,8 +435,15 @@ static const NodeImplVtbl HTMLStyleElementImplVtbl = {
.
clone
=
HTMLElement_clone
,
.
handle_event
=
HTMLElement_handle_event
,
.
get_attr_col
=
HTMLElement_get_attr_col
,
.
traverse
=
HTMLStyleElement_traverse
,
.
unlink
=
HTMLStyleElement_unlink
};
static
const
event_target_vtbl_t
HTMLStyleElement_event_target_vtbl
=
{
{
HTMLELEMENT_DISPEX_VTBL_ENTRIES
,
.
traverse
=
HTMLStyleElement_traverse
,
.
unlink
=
HTMLStyleElement_unlink
},
HTMLELEMENT_EVENT_TARGET_VTBL_ENTRIES
,
};
static
const
tid_t
HTMLStyleElement_iface_tids
[]
=
{
...
...
@@ -438,7 +452,7 @@ static const tid_t HTMLStyleElement_iface_tids[] = {
};
static
dispex_static_data_t
HTMLStyleElement_dispex
=
{
"HTMLStyleElement"
,
&
HTMLElement_event_target_vtbl
.
dispex_vtbl
,
&
HTML
Style
Element_event_target_vtbl
.
dispex_vtbl
,
DispHTMLStyleElement_tid
,
HTMLStyleElement_iface_tids
,
HTMLStyleElement_init_dispex_info
...
...
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