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
1f5b201e
Commit
1f5b201e
authored
Jun 28, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Share nsstyle reference with nsnode.
parent
b1ed6b2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
htmlstyleelem.c
dlls/mshtml/htmlstyleelem.c
+8
-17
No files found.
dlls/mshtml/htmlstyleelem.c
View file @
1f5b201e
...
...
@@ -17,6 +17,7 @@
*/
#include <stdarg.h>
#include <assert.h>
#define COBJMACROS
...
...
@@ -282,19 +283,9 @@ 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
->
nsstyle
)
nsIDOMHTMLStyleElement_Release
(
This
->
nsstyle
);
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
static
const
NodeImplVtbl
HTMLStyleElementImplVtbl
=
{
HTMLStyleElement_QI
,
HTML
Style
Element_destructor
,
HTMLElement_destructor
,
HTMLElement_clone
,
HTMLElement_get_attr_col
};
...
...
@@ -323,14 +314,14 @@ HRESULT HTMLStyleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem
ret
->
IHTMLStyleElement_iface
.
lpVtbl
=
&
HTMLStyleElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLStyleElementImplVtbl
;
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLStyleElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLStyleElement
,
(
void
**
)
&
ret
->
nsstyle
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIDOMHTMLStyleElement iface: %08x
\n
"
,
nsres
);
heap_free
(
ret
);
return
E_FAIL
;
}
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLStyleElement_dispex
);
/* 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
;
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