mshtml: Moved common element tids to macro.

This commit is contained in:
Jacek Caban 2010-01-28 02:09:02 +01:00 committed by Alexandre Julliard
parent a01d392153
commit b00bd14e77
15 changed files with 22 additions and 72 deletions

View File

@ -520,12 +520,7 @@ static const NodeImplVtbl HTMLAnchorElementImplVtbl = {
static const tid_t HTMLAnchorElement_iface_tids[] = { static const tid_t HTMLAnchorElement_iface_tids[] = {
IHTMLAnchorElement_tid, IHTMLAnchorElement_tid,
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLElement4_tid,
IHTMLTextContainer_tid, IHTMLTextContainer_tid,
IHTMLUniqueName_tid, IHTMLUniqueName_tid,
0 0

View File

@ -799,12 +799,7 @@ static const NodeImplVtbl HTMLBodyElementImplVtbl = {
static const tid_t HTMLBodyElement_iface_tids[] = { static const tid_t HTMLBodyElement_iface_tids[] = {
IHTMLBodyElement_tid, IHTMLBodyElement_tid,
IHTMLBodyElement2_tid, IHTMLBodyElement2_tid,
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLElement4_tid,
IHTMLTextContainer_tid, IHTMLTextContainer_tid,
IHTMLUniqueName_tid, IHTMLUniqueName_tid,
0 0

View File

@ -171,11 +171,7 @@ static const NodeImplVtbl HTMLCommentElementImplVtbl = {
}; };
static const tid_t HTMLCommentElement_iface_tids[] = { static const tid_t HTMLCommentElement_iface_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLCommentElement_tid, IHTMLCommentElement_tid,
0 0
}; };

View File

@ -1572,11 +1572,7 @@ static const NodeImplVtbl HTMLElementImplVtbl = {
}; };
static const tid_t HTMLElement_iface_tids[] = { static const tid_t HTMLElement_iface_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
0 0
}; };

View File

@ -483,11 +483,7 @@ static const NodeImplVtbl HTMLFormElementImplVtbl = {
}; };
static const tid_t HTMLFormElement_iface_tids[] = { static const tid_t HTMLFormElement_iface_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLFormElement_tid, IHTMLFormElement_tid,
0 0
}; };

View File

@ -270,11 +270,7 @@ static const NodeImplVtbl HTMLFrameElementImplVtbl = {
}; };
static const tid_t HTMLFrameElement_iface_tids[] = { static const tid_t HTMLFrameElement_iface_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLFrameBase_tid, IHTMLFrameBase_tid,
IHTMLFrameBase2_tid, IHTMLFrameBase2_tid,
IHTMLFrameElement3_tid, IHTMLFrameElement3_tid,

View File

@ -153,11 +153,7 @@ static const NodeImplVtbl HTMLGenericElementImplVtbl = {
}; };
static const tid_t HTMLGenericElement_iface_tids[] = { static const tid_t HTMLGenericElement_iface_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLGenericElement_tid, IHTMLGenericElement_tid,
0 0
}; };

View File

@ -255,11 +255,7 @@ static const NodeImplVtbl HTMLIFrameImplVtbl = {
}; };
static const tid_t HTMLIFrame_iface_tids[] = { static const tid_t HTMLIFrame_iface_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLFrameBase_tid, IHTMLFrameBase_tid,
IHTMLFrameBase2_tid, IHTMLFrameBase2_tid,
IHTMLIFrameElement_tid, IHTMLIFrameElement_tid,

View File

@ -609,11 +609,7 @@ static const NodeImplVtbl HTMLImgElementImplVtbl = {
}; };
static const tid_t HTMLImgElement_iface_tids[] = { static const tid_t HTMLImgElement_iface_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLImgElement_tid, IHTMLImgElement_tid,
0 0
}; };

View File

@ -1173,11 +1173,7 @@ static const NodeImplVtbl HTMLInputElementImplVtbl = {
}; };
static const tid_t HTMLInputElement_iface_tids[] = { static const tid_t HTMLInputElement_iface_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLInputElement_tid, IHTMLInputElement_tid,
0 0
}; };

View File

@ -324,11 +324,7 @@ static const NodeImplVtbl HTMLOptionElementImplVtbl = {
}; };
static const tid_t HTMLOptionElement_iface_tids[] = { static const tid_t HTMLOptionElement_iface_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLOptionElement_tid, IHTMLOptionElement_tid,
0 0
}; };

View File

@ -505,11 +505,7 @@ static const NodeImplVtbl HTMLSelectElementImplVtbl = {
}; };
static const tid_t HTMLSelectElement_tids[] = { static const tid_t HTMLSelectElement_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLSelectElement_tid, IHTMLSelectElement_tid,
0 0
}; };

View File

@ -558,11 +558,7 @@ static const NodeImplVtbl HTMLTableImplVtbl = {
}; };
static const tid_t HTMLTable_iface_tids[] = { static const tid_t HTMLTable_iface_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLTable_tid, IHTMLTable_tid,
0 0
}; };

View File

@ -301,11 +301,7 @@ static const NodeImplVtbl HTMLTableRowImplVtbl = {
}; };
static const tid_t HTMLTableRow_iface_tids[] = { static const tid_t HTMLTableRow_iface_tids[] = {
IHTMLDOMNode_tid, HTMLELEMENT_TIDS,
IHTMLDOMNode2_tid,
IHTMLElement_tid,
IHTMLElement2_tid,
IHTMLElement3_tid,
IHTMLTableRow_tid, IHTMLTableRow_tid,
0 0
}; };

View File

@ -490,6 +490,14 @@ typedef struct {
nsIDOMHTMLElement *nselem; nsIDOMHTMLElement *nselem;
} HTMLElement; } HTMLElement;
#define HTMLELEMENT_TIDS \
IHTMLDOMNode_tid, \
IHTMLDOMNode2_tid, \
IHTMLElement_tid, \
IHTMLElement2_tid, \
IHTMLElement3_tid, \
IHTMLElement4_tid
typedef struct { typedef struct {
HTMLElement element; HTMLElement element;