Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dbf0e43f
Commit
dbf0e43f
authored
Nov 02, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Nov 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Traverse and unlink the style_sheet referenced from the StyleElement.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
213786ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
htmlstyleelem.c
dlls/mshtml/htmlstyleelem.c
+4
-9
No files found.
dlls/mshtml/htmlstyleelem.c
View file @
dbf0e43f
...
...
@@ -382,6 +382,8 @@ static void HTMLStyleElement_traverse(DispatchEx *dispex, nsCycleCollectionTrave
HTMLStyleElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLElement_traverse
(
dispex
,
cb
);
if
(
This
->
style_sheet
)
note_cc_edge
((
nsISupports
*
)
This
->
style_sheet
,
"style_sheet"
,
cb
);
if
(
This
->
nsstyle
)
note_cc_edge
((
nsISupports
*
)
This
->
nsstyle
,
"nsstyle"
,
cb
);
}
...
...
@@ -390,15 +392,8 @@ static void HTMLStyleElement_unlink(DispatchEx *dispex)
{
HTMLStyleElement
*
This
=
impl_from_DispatchEx
(
dispex
);
HTMLElement_unlink
(
dispex
);
unlink_ref
(
&
This
->
nsstyle
);
}
static
void
HTMLStyleElement_destructor
(
DispatchEx
*
dispex
)
{
HTMLStyleElement
*
This
=
impl_from_DispatchEx
(
dispex
);
unlink_ref
(
&
This
->
style_sheet
);
HTMLElement_destructor
(
dispex
);
unlink_ref
(
&
This
->
nsstyle
);
}
static
void
HTMLStyleElement_init_dispex_info
(
dispex_data_t
*
info
,
compat_mode_t
mode
)
...
...
@@ -429,7 +424,7 @@ static const event_target_vtbl_t HTMLStyleElement_event_target_vtbl = {
{
HTMLELEMENT_DISPEX_VTBL_ENTRIES
,
.
query_interface
=
HTMLStyleElement_query_interface
,
.
destructor
=
HTML
Style
Element_destructor
,
.
destructor
=
HTMLElement_destructor
,
.
traverse
=
HTMLStyleElement_traverse
,
.
unlink
=
HTMLStyleElement_unlink
},
...
...
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