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
791dd955
Commit
791dd955
authored
Apr 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
May 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved IDispatchEx initialization to HTMLElement_Init.
parent
30d20475
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
htmlelem.c
dlls/mshtml/htmlelem.c
+4
-4
htmlinput.c
dlls/mshtml/htmlinput.c
+1
-2
htmloption.c
dlls/mshtml/htmloption.c
+3
-4
No files found.
dlls/mshtml/htmlelem.c
View file @
791dd955
...
...
@@ -1297,12 +1297,14 @@ static dispex_static_data_t HTMLElement_dispex = {
void
HTMLElement_Init
(
HTMLElement
*
This
)
{
This
->
node
.
vtbl
=
&
HTMLElementImplVtbl
;
This
->
lpHTMLElementVtbl
=
&
HTMLElementVtbl
;
ConnectionPointContainer_Init
(
&
This
->
cp_container
,
(
IUnknown
*
)
HTMLELEM
(
This
));
HTMLElement2_Init
(
This
);
if
(
!
This
->
node
.
dispex
.
data
)
init_dispex
(
&
This
->
node
.
dispex
,
(
IUnknown
*
)
HTMLELEM
(
This
),
&
HTMLElement_dispex
);
}
HTMLElement
*
HTMLElement_Create
(
nsIDOMNode
*
nsnode
)
...
...
@@ -1351,15 +1353,13 @@ HTMLElement *HTMLElement_Create(nsIDOMNode *nsnode)
if
(
!
ret
)
{
ret
=
heap_alloc_zero
(
sizeof
(
HTMLElement
));
HTMLElement_Init
(
ret
);
ret
->
node
.
vtbl
=
&
HTMLElementImplVtbl
;
}
nsAString_Finish
(
&
class_name_str
);
ret
->
nselem
=
nselem
;
if
(
!
ret
->
node
.
dispex
.
data
)
init_dispex
(
&
ret
->
node
.
dispex
,
(
IUnknown
*
)
HTMLELEM
(
ret
),
&
HTMLElement_dispex
);
return
ret
;
}
...
...
dlls/mshtml/htmlinput.c
View file @
791dd955
...
...
@@ -1078,12 +1078,11 @@ HTMLElement *HTMLInputElement_Create(nsIDOMHTMLElement *nselem)
HTMLInputElement
*
ret
=
heap_alloc_zero
(
sizeof
(
HTMLInputElement
));
nsresult
nsres
;
HTMLElement_Init
(
&
ret
->
element
);
ret
->
lpHTMLInputElementVtbl
=
&
HTMLInputElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLInputElementImplVtbl
;
init_dispex
(
&
ret
->
element
.
node
.
dispex
,
(
IUnknown
*
)
HTMLINPUT
(
ret
),
&
HTMLInputElement_dispex
);
HTMLElement_Init
(
&
ret
->
element
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLInputElement
,
(
void
**
)
&
ret
->
nsinput
);
...
...
dlls/mshtml/htmloption.c
View file @
791dd955
...
...
@@ -350,17 +350,16 @@ HTMLElement *HTMLOptionElement_Create(nsIDOMHTMLElement *nselem)
HTMLOptionElement
*
ret
=
heap_alloc_zero
(
sizeof
(
HTMLOptionElement
));
nsresult
nsres
;
HTMLElement_Init
(
&
ret
->
element
);
ret
->
lpHTMLOptionElementVtbl
=
&
HTMLOptionElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLOptionElementImplVtbl
;
HTMLElement_Init
(
&
ret
->
element
);
init_dispex
(
&
ret
->
element
.
node
.
dispex
,
(
IUnknown
*
)
HTMLOPTION
(
ret
),
&
HTMLOptionElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLOptionElement
,
(
void
**
)
&
ret
->
nsoption
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"Could not get nsIDOMHTMLOptionElement interface: %08x
\n
"
,
nsres
);
init_dispex
(
&
ret
->
element
.
node
.
dispex
,
(
IUnknown
*
)
HTMLOPTION
(
ret
),
&
HTMLOptionElement_dispex
);
return
&
ret
->
element
;
}
...
...
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