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
316417cc
Commit
316417cc
authored
Sep 24, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't share nsstyle reference with nsnode.
parent
727c1ceb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
5 deletions
+33
-5
htmlstyleelem.c
dlls/mshtml/htmlstyleelem.c
+33
-5
No files found.
dlls/mshtml/htmlstyleelem.c
View file @
316417cc
...
@@ -319,13 +319,44 @@ static void HTMLStyleElement_destructor(HTMLDOMNode *iface)
...
@@ -319,13 +319,44 @@ static void HTMLStyleElement_destructor(HTMLDOMNode *iface)
HTMLElement_destructor
(
iface
);
HTMLElement_destructor
(
iface
);
}
}
static
void
HTMLStyleElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLStyleElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsstyle
)
note_cc_edge
((
nsISupports
*
)
This
->
nsstyle
,
"This->nsstyle"
,
cb
);
}
static
void
HTMLStyleElement_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLStyleElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsstyle
)
{
nsIDOMHTMLStyleElement
*
nsstyle
=
This
->
nsstyle
;
This
->
nsstyle
=
NULL
;
nsIDOMHTMLStyleElement_Release
(
nsstyle
);
}
}
static
const
NodeImplVtbl
HTMLStyleElementImplVtbl
=
{
static
const
NodeImplVtbl
HTMLStyleElementImplVtbl
=
{
HTMLStyleElement_QI
,
HTMLStyleElement_QI
,
HTMLStyleElement_destructor
,
HTMLStyleElement_destructor
,
HTMLElement_cpc
,
HTMLElement_cpc
,
HTMLElement_clone
,
HTMLElement_clone
,
HTMLElement_handle_event
,
HTMLElement_handle_event
,
HTMLElement_get_attr_col
HTMLElement_get_attr_col
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
HTMLStyleElement_traverse
,
HTMLStyleElement_unlink
};
};
static
const
tid_t
HTMLStyleElement_iface_tids
[]
=
{
static
const
tid_t
HTMLStyleElement_iface_tids
[]
=
{
...
@@ -355,10 +386,7 @@ HRESULT HTMLStyleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem
...
@@ -355,10 +386,7 @@ HRESULT HTMLStyleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLStyleElement_dispex
);
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLStyleElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLStyleElement
,
(
void
**
)
&
ret
->
nsstyle
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLStyleElement
,
(
void
**
)
&
ret
->
nsstyle
);
assert
(
nsres
==
NS_OK
);
/* Share nsstyle reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nsstyle
==
ret
->
element
.
node
.
nsnode
);
nsIDOMNode_Release
(
ret
->
element
.
node
.
nsnode
);
*
elem
=
&
ret
->
element
;
*
elem
=
&
ret
->
element
;
return
S_OK
;
return
S_OK
;
...
...
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