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
6ac375d3
Commit
6ac375d3
authored
Jun 27, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Share nsform reference with nsnode.
parent
829f24c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
htmlform.c
dlls/mshtml/htmlform.c
+7
-17
No files found.
dlls/mshtml/htmlform.c
View file @
6ac375d3
...
...
@@ -17,6 +17,7 @@
*/
#include <stdarg.h>
#include <assert.h>
#define COBJMACROS
...
...
@@ -505,16 +506,6 @@ static HRESULT HTMLFormElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
return
HTMLElement_QI
(
&
This
->
element
.
node
,
riid
,
ppv
);
}
static
void
HTMLFormElement_destructor
(
HTMLDOMNode
*
iface
)
{
HTMLFormElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsform
)
nsIDOMHTMLFormElement_Release
(
This
->
nsform
);
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
static
HRESULT
HTMLFormElement_get_dispid
(
HTMLDOMNode
*
iface
,
BSTR
name
,
DWORD
grfdex
,
DISPID
*
pid
)
{
...
...
@@ -639,7 +630,7 @@ static HRESULT HTMLFormElement_invoke(HTMLDOMNode *iface,
static
const
NodeImplVtbl
HTMLFormElementImplVtbl
=
{
HTMLFormElement_QI
,
HTML
Form
Element_destructor
,
HTMLElement_destructor
,
HTMLElement_clone
,
HTMLElement_get_attr_col
,
NULL
,
...
...
@@ -678,14 +669,13 @@ HRESULT HTMLFormElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem,
ret
->
IHTMLFormElement_iface
.
lpVtbl
=
&
HTMLFormElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLFormElementImplVtbl
;
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLFormElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLFormElement
,
(
void
**
)
&
ret
->
nsform
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIDOMHTMLFormElement interface: %08x
\n
"
,
nsres
);
heap_free
(
ret
);
return
E_FAIL
;
}
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLFormElement_dispex
);
/* Share the reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nsform
==
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