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
a9e77575
Commit
a9e77575
authored
Dec 04, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Initialize HTMLElement in the beginning of constructors.
parent
a1bdef2d
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
27 additions
and
6 deletions
+27
-6
htmlanchor.c
dlls/mshtml/htmlanchor.c
+2
-0
htmlbody.c
dlls/mshtml/htmlbody.c
+2
-2
htmlelem.c
dlls/mshtml/htmlelem.c
+9
-4
htmlinput.c
dlls/mshtml/htmlinput.c
+2
-0
htmloption.c
dlls/mshtml/htmloption.c
+3
-0
htmlselect.c
dlls/mshtml/htmlselect.c
+2
-0
htmltable.c
dlls/mshtml/htmltable.c
+2
-0
htmltextarea.c
dlls/mshtml/htmltextarea.c
+2
-0
htmltextcont.c
dlls/mshtml/htmltextcont.c
+2
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
No files found.
dlls/mshtml/htmlanchor.c
View file @
a9e77575
...
...
@@ -486,6 +486,8 @@ HTMLElement *HTMLAnchorElement_Create(nsIDOMHTMLElement *nselem)
{
HTMLAnchorElement
*
ret
=
mshtml_alloc
(
sizeof
(
HTMLAnchorElement
));
HTMLElement_Init
(
&
ret
->
element
);
ret
->
lpHTMLAnchorElementVtbl
=
&
HTMLAnchorElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLAnchorElementImplVtbl
;
...
...
dlls/mshtml/htmlbody.c
View file @
a9e77575
...
...
@@ -501,11 +501,11 @@ HTMLElement *HTMLBodyElement_Create(nsIDOMHTMLElement *nselem)
TRACE
(
"(%p)->(%p)
\n
"
,
ret
,
nselem
);
HTMLTextContainer_Init
(
&
ret
->
textcont
);
ret
->
lpHTMLBodyElementVtbl
=
&
HTMLBodyElementVtbl
;
ret
->
textcont
.
element
.
node
.
vtbl
=
&
HTMLBodyElementImplVtbl
;
HTMLTextContainer_Init
(
&
ret
->
textcont
);
ConnectionPointContainer_Init
(
&
ret
->
cp_container
,
(
IUnknown
*
)
HTMLBODY
(
ret
));
ConnectionPoint_Init
(
&
ret
->
cp_propnotif
,
&
ret
->
cp_container
,
&
IID_IPropertyNotifySink
);
ConnectionPoint_Init
(
&
ret
->
cp_txtcontevents
,
&
ret
->
cp_container
,
&
DIID_HTMLTextContainerEvents
);
...
...
dlls/mshtml/htmlelem.c
View file @
a9e77575
...
...
@@ -1280,6 +1280,14 @@ static const NodeImplVtbl HTMLElementImplVtbl = {
HTMLElement_destructor
};
void
HTMLElement_Init
(
HTMLElement
*
This
)
{
This
->
node
.
vtbl
=
&
HTMLElementImplVtbl
;
This
->
lpHTMLElementVtbl
=
&
HTMLElementVtbl
;
HTMLElement2_Init
(
This
);
}
HTMLElement
*
HTMLElement_Create
(
nsIDOMNode
*
nsnode
)
{
nsIDOMHTMLElement
*
nselem
;
...
...
@@ -1322,16 +1330,13 @@ HTMLElement *HTMLElement_Create(nsIDOMNode *nsnode)
if
(
!
ret
)
{
ret
=
mshtml_alloc
(
sizeof
(
HTMLElement
));
ret
->
node
.
vtbl
=
&
HTMLElementImplVtbl
;
HTMLElement_Init
(
ret
)
;
}
nsAString_Finish
(
&
class_name_str
);
ret
->
lpHTMLElementVtbl
=
&
HTMLElementVtbl
;
ret
->
nselem
=
nselem
;
HTMLElement2_Init
(
ret
);
return
ret
;
}
...
...
dlls/mshtml/htmlinput.c
View file @
a9e77575
...
...
@@ -1062,6 +1062,8 @@ HTMLElement *HTMLInputElement_Create(nsIDOMHTMLElement *nselem)
HTMLInputElement
*
ret
=
mshtml_alloc
(
sizeof
(
HTMLInputElement
));
nsresult
nsres
;
HTMLElement_Init
(
&
ret
->
element
);
ret
->
lpHTMLInputElementVtbl
=
&
HTMLInputElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLInputElementImplVtbl
;
...
...
dlls/mshtml/htmloption.c
View file @
a9e77575
...
...
@@ -340,6 +340,8 @@ HTMLElement *HTMLOptionElement_Create(nsIDOMHTMLElement *nselem)
HTMLOptionElement
*
ret
=
mshtml_alloc
(
sizeof
(
HTMLOptionElement
));
nsresult
nsres
;
HTMLElement_Init
(
&
ret
->
element
);
ret
->
lpHTMLOptionElementVtbl
=
&
HTMLOptionElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLOptionElementImplVtbl
;
...
...
@@ -511,6 +513,7 @@ HTMLOptionElementFactory *HTMLOptionElementFactory_Create(HTMLDocument *doc)
HTMLOptionElementFactory
*
ret
;
ret
=
mshtml_alloc
(
sizeof
(
HTMLOptionElementFactory
));
ret
->
lpHTMLOptionElementFactoryVtbl
=
&
HTMLOptionElementFactoryVtbl
;
ret
->
ref
=
1
;
ret
->
doc
=
doc
;
...
...
dlls/mshtml/htmlselect.c
View file @
a9e77575
...
...
@@ -429,6 +429,8 @@ HTMLElement *HTMLSelectElement_Create(nsIDOMHTMLElement *nselem)
HTMLSelectElement
*
ret
=
mshtml_alloc
(
sizeof
(
HTMLSelectElement
));
nsresult
nsres
;
HTMLElement_Init
(
&
ret
->
element
);
ret
->
lpHTMLSelectElementVtbl
=
&
HTMLSelectElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLSelectElementImplVtbl
;
...
...
dlls/mshtml/htmltable.c
View file @
a9e77575
...
...
@@ -550,6 +550,8 @@ HTMLElement *HTMLTable_Create(nsIDOMHTMLElement *nselem)
{
HTMLTable
*
ret
=
mshtml_alloc
(
sizeof
(
HTMLTable
));
HTMLElement_Init
(
&
ret
->
element
);
ret
->
element
.
node
.
vtbl
=
&
HTMLTableImplVtbl
;
ret
->
lpHTMLTableVtbl
=
&
HTMLTableVtbl
;
...
...
dlls/mshtml/htmltextarea.c
View file @
a9e77575
...
...
@@ -409,6 +409,8 @@ HTMLElement *HTMLTextAreaElement_Create(nsIDOMHTMLElement *nselem)
HTMLTextAreaElement
*
ret
=
mshtml_alloc
(
sizeof
(
HTMLTextAreaElement
));
nsresult
nsres
;
HTMLElement_Init
(
&
ret
->
element
);
ret
->
lpHTMLTextAreaElementVtbl
=
&
HTMLTextAreaElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLTextAreaElementImplVtbl
;
...
...
dlls/mshtml/htmltextcont.c
View file @
a9e77575
...
...
@@ -213,5 +213,7 @@ static const IHTMLTextContainerVtbl HTMLTextContainerVtbl = {
void
HTMLTextContainer_Init
(
HTMLTextContainer
*
This
)
{
HTMLElement_Init
(
&
This
->
element
);
This
->
lpHTMLTextContainerVtbl
=
&
HTMLTextContainerVtbl
;
}
dlls/mshtml/mshtml_private.h
View file @
a9e77575
...
...
@@ -445,6 +445,7 @@ HTMLElement *HTMLSelectElement_Create(nsIDOMHTMLElement*);
HTMLElement
*
HTMLTable_Create
(
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLTextAreaElement_Create
(
nsIDOMHTMLElement
*
);
void
HTMLElement_Init
(
HTMLElement
*
);
void
HTMLElement2_Init
(
HTMLElement
*
);
void
HTMLTextContainer_Init
(
HTMLTextContainer
*
);
...
...
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