2 * Copyright 2006-2010 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include "mshtml_private.h"
23 IHTMLRect IHTMLRect_iface
;
27 nsIDOMClientRect
*nsrect
;
30 static inline HTMLRect
*impl_from_IHTMLRect(IHTMLRect
*iface
)
32 return CONTAINING_RECORD(iface
, HTMLRect
, IHTMLRect_iface
);
35 static HRESULT WINAPI
HTMLRect_QueryInterface(IHTMLRect
*iface
, REFIID riid
, void **ppv
)
37 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
39 TRACE("(%p)->(%s %p)\n", This
, debugstr_mshtml_guid(riid
), ppv
);
41 if(IsEqualGUID(&IID_IUnknown
, riid
)) {
42 *ppv
= &This
->IHTMLRect_iface
;
43 }else if(IsEqualGUID(&IID_IHTMLRect
, riid
)) {
44 *ppv
= &This
->IHTMLRect_iface
;
45 }else if(dispex_query_interface(&This
->dispex
, riid
, ppv
)) {
46 return *ppv
? S_OK
: E_NOINTERFACE
;
48 FIXME("(%p)->(%s %p)\n", This
, debugstr_mshtml_guid(riid
), ppv
);
53 IUnknown_AddRef((IUnknown
*)*ppv
);
57 static ULONG WINAPI
HTMLRect_AddRef(IHTMLRect
*iface
)
59 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
60 LONG ref
= InterlockedIncrement(&This
->ref
);
62 TRACE("(%p) ref=%d\n", This
, ref
);
67 static ULONG WINAPI
HTMLRect_Release(IHTMLRect
*iface
)
69 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
70 LONG ref
= InterlockedDecrement(&This
->ref
);
72 TRACE("(%p) ref=%d\n", This
, ref
);
76 nsIDOMClientRect_Release(This
->nsrect
);
83 static HRESULT WINAPI
HTMLRect_GetTypeInfoCount(IHTMLRect
*iface
, UINT
*pctinfo
)
85 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
86 FIXME("(%p)->(%p)\n", This
, pctinfo
);
90 static HRESULT WINAPI
HTMLRect_GetTypeInfo(IHTMLRect
*iface
, UINT iTInfo
,
91 LCID lcid
, ITypeInfo
**ppTInfo
)
93 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
95 return IDispatchEx_GetTypeInfo(&This
->dispex
.IDispatchEx_iface
, iTInfo
, lcid
, ppTInfo
);
98 static HRESULT WINAPI
HTMLRect_GetIDsOfNames(IHTMLRect
*iface
, REFIID riid
,
99 LPOLESTR
*rgszNames
, UINT cNames
, LCID lcid
, DISPID
*rgDispId
)
101 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
103 return IDispatchEx_GetIDsOfNames(&This
->dispex
.IDispatchEx_iface
, riid
, rgszNames
, cNames
,
107 static HRESULT WINAPI
HTMLRect_Invoke(IHTMLRect
*iface
, DISPID dispIdMember
,
108 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
109 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
111 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
113 return IDispatchEx_Invoke(&This
->dispex
.IDispatchEx_iface
, dispIdMember
, riid
, lcid
, wFlags
,
114 pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
117 static HRESULT WINAPI
HTMLRect_put_left(IHTMLRect
*iface
, LONG v
)
119 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
120 FIXME("(%p)->(%d)\n", This
, v
);
124 static HRESULT WINAPI
HTMLRect_get_left(IHTMLRect
*iface
, LONG
*p
)
126 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
130 TRACE("(%p)->(%p)\n", This
, p
);
132 nsres
= nsIDOMClientRect_GetLeft(This
->nsrect
, &left
);
133 if(NS_FAILED(nsres
)) {
134 ERR("GetLeft failed: %08x\n", nsres
);
138 *p
= floor(left
+0.5);
142 static HRESULT WINAPI
HTMLRect_put_top(IHTMLRect
*iface
, LONG v
)
144 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
145 FIXME("(%p)->(%d)\n", This
, v
);
149 static HRESULT WINAPI
HTMLRect_get_top(IHTMLRect
*iface
, LONG
*p
)
151 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
155 TRACE("(%p)->(%p)\n", This
, p
);
157 nsres
= nsIDOMClientRect_GetTop(This
->nsrect
, &top
);
158 if(NS_FAILED(nsres
)) {
159 ERR("GetTop failed: %08x\n", nsres
);
167 static HRESULT WINAPI
HTMLRect_put_right(IHTMLRect
*iface
, LONG v
)
169 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
170 FIXME("(%p)->(%d)\n", This
, v
);
174 static HRESULT WINAPI
HTMLRect_get_right(IHTMLRect
*iface
, LONG
*p
)
176 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
180 TRACE("(%p)->(%p)\n", This
, p
);
182 nsres
= nsIDOMClientRect_GetRight(This
->nsrect
, &right
);
183 if(NS_FAILED(nsres
)) {
184 ERR("GetRight failed: %08x\n", nsres
);
188 *p
= floor(right
+0.5);
192 static HRESULT WINAPI
HTMLRect_put_bottom(IHTMLRect
*iface
, LONG v
)
194 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
195 FIXME("(%p)->(%d)\n", This
, v
);
199 static HRESULT WINAPI
HTMLRect_get_bottom(IHTMLRect
*iface
, LONG
*p
)
201 HTMLRect
*This
= impl_from_IHTMLRect(iface
);
205 TRACE("(%p)->(%p)\n", This
, p
);
207 nsres
= nsIDOMClientRect_GetBottom(This
->nsrect
, &bottom
);
208 if(NS_FAILED(nsres
)) {
209 ERR("GetBottom failed: %08x\n", nsres
);
213 *p
= floor(bottom
+0.5);
217 static const IHTMLRectVtbl HTMLRectVtbl
= {
218 HTMLRect_QueryInterface
,
221 HTMLRect_GetTypeInfoCount
,
222 HTMLRect_GetTypeInfo
,
223 HTMLRect_GetIDsOfNames
,
235 static const tid_t HTMLRect_iface_tids
[] = {
239 static dispex_static_data_t HTMLRect_dispex
= {
246 static HRESULT
create_html_rect(nsIDOMClientRect
*nsrect
, IHTMLRect
**ret
)
250 rect
= heap_alloc_zero(sizeof(HTMLRect
));
252 return E_OUTOFMEMORY
;
254 rect
->IHTMLRect_iface
.lpVtbl
= &HTMLRectVtbl
;
257 init_dispex(&rect
->dispex
, (IUnknown
*)&rect
->IHTMLRect_iface
, &HTMLRect_dispex
);
259 nsIDOMClientRect_AddRef(nsrect
);
260 rect
->nsrect
= nsrect
;
262 *ret
= &rect
->IHTMLRect_iface
;
266 static inline HTMLElement
*impl_from_IHTMLElement2(IHTMLElement2
*iface
)
268 return CONTAINING_RECORD(iface
, HTMLElement
, IHTMLElement2_iface
);
271 static HRESULT WINAPI
HTMLElement2_QueryInterface(IHTMLElement2
*iface
,
272 REFIID riid
, void **ppv
)
274 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
275 return IHTMLElement_QueryInterface(&This
->IHTMLElement_iface
, riid
, ppv
);
278 static ULONG WINAPI
HTMLElement2_AddRef(IHTMLElement2
*iface
)
280 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
281 return IHTMLElement_AddRef(&This
->IHTMLElement_iface
);
284 static ULONG WINAPI
HTMLElement2_Release(IHTMLElement2
*iface
)
286 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
287 return IHTMLElement_Release(&This
->IHTMLElement_iface
);
290 static HRESULT WINAPI
HTMLElement2_GetTypeInfoCount(IHTMLElement2
*iface
, UINT
*pctinfo
)
292 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
293 return IDispatchEx_GetTypeInfoCount(&This
->node
.dispex
.IDispatchEx_iface
, pctinfo
);
296 static HRESULT WINAPI
HTMLElement2_GetTypeInfo(IHTMLElement2
*iface
, UINT iTInfo
,
297 LCID lcid
, ITypeInfo
**ppTInfo
)
299 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
300 return IDispatchEx_GetTypeInfo(&This
->node
.dispex
.IDispatchEx_iface
, iTInfo
, lcid
, ppTInfo
);
303 static HRESULT WINAPI
HTMLElement2_GetIDsOfNames(IHTMLElement2
*iface
, REFIID riid
,
304 LPOLESTR
*rgszNames
, UINT cNames
,
305 LCID lcid
, DISPID
*rgDispId
)
307 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
308 return IDispatchEx_GetIDsOfNames(&This
->node
.dispex
.IDispatchEx_iface
, riid
, rgszNames
, cNames
,
312 static HRESULT WINAPI
HTMLElement2_Invoke(IHTMLElement2
*iface
, DISPID dispIdMember
,
313 REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
,
314 VARIANT
*pVarResult
, EXCEPINFO
*pExcepInfo
, UINT
*puArgErr
)
316 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
317 return IDispatchEx_Invoke(&This
->node
.dispex
.IDispatchEx_iface
, dispIdMember
, riid
, lcid
,
318 wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
321 static HRESULT WINAPI
HTMLElement2_get_scopeName(IHTMLElement2
*iface
, BSTR
*p
)
323 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
324 FIXME("(%p)->(%p)\n", This
, p
);
328 static HRESULT WINAPI
HTMLElement2_setCapture(IHTMLElement2
*iface
, VARIANT_BOOL containerCapture
)
330 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
331 FIXME("(%p)->(%x)\n", This
, containerCapture
);
335 static HRESULT WINAPI
HTMLElement2_releaseCapture(IHTMLElement2
*iface
)
337 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
338 FIXME("(%p)\n", This
);
342 static HRESULT WINAPI
HTMLElement2_put_onlosecapture(IHTMLElement2
*iface
, VARIANT v
)
344 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
345 FIXME("(%p)->()\n", This
);
349 static HRESULT WINAPI
HTMLElement2_get_onlosecapture(IHTMLElement2
*iface
, VARIANT
*p
)
351 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
352 FIXME("(%p)->(%p)\n", This
, p
);
356 static HRESULT WINAPI
HTMLElement2_componentFromPoint(IHTMLElement2
*iface
,
357 LONG x
, LONG y
, BSTR
*component
)
359 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
360 FIXME("(%p)->(%d %d %p)\n", This
, x
, y
, component
);
364 static HRESULT WINAPI
HTMLElement2_doScroll(IHTMLElement2
*iface
, VARIANT component
)
366 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
368 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&component
));
370 if(!This
->node
.doc
->content_ready
371 || !This
->node
.doc
->basedoc
.doc_obj
->in_place_active
)
378 static HRESULT WINAPI
HTMLElement2_put_onscroll(IHTMLElement2
*iface
, VARIANT v
)
380 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
381 FIXME("(%p)->()\n", This
);
385 static HRESULT WINAPI
HTMLElement2_get_onscroll(IHTMLElement2
*iface
, VARIANT
*p
)
387 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
388 FIXME("(%p)->(%p)\n", This
, p
);
392 static HRESULT WINAPI
HTMLElement2_put_ondrag(IHTMLElement2
*iface
, VARIANT v
)
394 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
396 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
398 return set_node_event(&This
->node
, EVENTID_DRAG
, &v
);
401 static HRESULT WINAPI
HTMLElement2_get_ondrag(IHTMLElement2
*iface
, VARIANT
*p
)
403 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
405 TRACE("(%p)->(%p)\n", This
, p
);
407 return get_node_event(&This
->node
, EVENTID_DRAG
, p
);
410 static HRESULT WINAPI
HTMLElement2_put_ondragend(IHTMLElement2
*iface
, VARIANT v
)
412 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
413 FIXME("(%p)->()\n", This
);
417 static HRESULT WINAPI
HTMLElement2_get_ondragend(IHTMLElement2
*iface
, VARIANT
*p
)
419 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
420 FIXME("(%p)->(%p)\n", This
, p
);
424 static HRESULT WINAPI
HTMLElement2_put_ondragenter(IHTMLElement2
*iface
, VARIANT v
)
426 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
427 FIXME("(%p)->()\n", This
);
431 static HRESULT WINAPI
HTMLElement2_get_ondragenter(IHTMLElement2
*iface
, VARIANT
*p
)
433 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
434 FIXME("(%p)->(%p)\n", This
, p
);
438 static HRESULT WINAPI
HTMLElement2_put_ondragover(IHTMLElement2
*iface
, VARIANT v
)
440 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
441 FIXME("(%p)->()\n", This
);
445 static HRESULT WINAPI
HTMLElement2_get_ondragover(IHTMLElement2
*iface
, VARIANT
*p
)
447 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
448 FIXME("(%p)->(%p)\n", This
, p
);
452 static HRESULT WINAPI
HTMLElement2_put_ondragleave(IHTMLElement2
*iface
, VARIANT v
)
454 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
455 FIXME("(%p)->()\n", This
);
459 static HRESULT WINAPI
HTMLElement2_get_ondragleave(IHTMLElement2
*iface
, VARIANT
*p
)
461 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
462 FIXME("(%p)->(%p)\n", This
, p
);
466 static HRESULT WINAPI
HTMLElement2_put_ondrop(IHTMLElement2
*iface
, VARIANT v
)
468 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
469 FIXME("(%p)->()\n", This
);
473 static HRESULT WINAPI
HTMLElement2_get_ondrop(IHTMLElement2
*iface
, VARIANT
*p
)
475 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
476 FIXME("(%p)->(%p)\n", This
, p
);
480 static HRESULT WINAPI
HTMLElement2_put_onbeforecut(IHTMLElement2
*iface
, VARIANT v
)
482 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
483 FIXME("(%p)->()\n", This
);
487 static HRESULT WINAPI
HTMLElement2_get_onbeforecut(IHTMLElement2
*iface
, VARIANT
*p
)
489 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
490 FIXME("(%p)->(%p)\n", This
, p
);
494 static HRESULT WINAPI
HTMLElement2_put_oncut(IHTMLElement2
*iface
, VARIANT v
)
496 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
497 FIXME("(%p)->()\n", This
);
501 static HRESULT WINAPI
HTMLElement2_get_oncut(IHTMLElement2
*iface
, VARIANT
*p
)
503 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
504 FIXME("(%p)->(%p)\n", This
, p
);
508 static HRESULT WINAPI
HTMLElement2_put_onbeforecopy(IHTMLElement2
*iface
, VARIANT v
)
510 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
511 FIXME("(%p)->()\n", This
);
515 static HRESULT WINAPI
HTMLElement2_get_onbeforecopy(IHTMLElement2
*iface
, VARIANT
*p
)
517 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
518 FIXME("(%p)->(%p)\n", This
, p
);
522 static HRESULT WINAPI
HTMLElement2_put_oncopy(IHTMLElement2
*iface
, VARIANT v
)
524 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
525 FIXME("(%p)->()\n", This
);
529 static HRESULT WINAPI
HTMLElement2_get_oncopy(IHTMLElement2
*iface
, VARIANT
*p
)
531 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
532 FIXME("(%p)->(%p)\n", This
, p
);
536 static HRESULT WINAPI
HTMLElement2_put_onbeforepaste(IHTMLElement2
*iface
, VARIANT v
)
538 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
539 FIXME("(%p)->()\n", This
);
543 static HRESULT WINAPI
HTMLElement2_get_onbeforepaste(IHTMLElement2
*iface
, VARIANT
*p
)
545 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
546 FIXME("(%p)->(%p)\n", This
, p
);
550 static HRESULT WINAPI
HTMLElement2_put_onpaste(IHTMLElement2
*iface
, VARIANT v
)
552 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
554 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
556 return set_node_event(&This
->node
, EVENTID_PASTE
, &v
);
559 static HRESULT WINAPI
HTMLElement2_get_onpaste(IHTMLElement2
*iface
, VARIANT
*p
)
561 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
563 TRACE("(%p)->(%p)\n", This
, p
);
565 return get_node_event(&This
->node
, EVENTID_PASTE
, p
);
568 static HRESULT WINAPI
HTMLElement2_get_currentStyle(IHTMLElement2
*iface
, IHTMLCurrentStyle
**p
)
570 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
572 TRACE("(%p)->(%p)\n", This
, p
);
574 return HTMLCurrentStyle_Create(This
, p
);
577 static HRESULT WINAPI
HTMLElement2_put_onpropertychange(IHTMLElement2
*iface
, VARIANT v
)
579 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
580 FIXME("(%p)->()\n", This
);
584 static HRESULT WINAPI
HTMLElement2_get_onpropertychange(IHTMLElement2
*iface
, VARIANT
*p
)
586 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
587 FIXME("(%p)->(%p)\n", This
, p
);
591 static HRESULT WINAPI
HTMLElement2_getClientRects(IHTMLElement2
*iface
, IHTMLRectCollection
**pRectCol
)
593 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
594 FIXME("(%p)->(%p)\n", This
, pRectCol
);
598 static HRESULT WINAPI
HTMLElement2_getBoundingClientRect(IHTMLElement2
*iface
, IHTMLRect
**pRect
)
600 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
601 nsIDOMClientRect
*nsrect
;
605 TRACE("(%p)->(%p)\n", This
, pRect
);
607 nsres
= nsIDOMHTMLElement_GetBoundingClientRect(This
->nselem
, &nsrect
);
608 if(NS_FAILED(nsres
) || !nsrect
) {
609 ERR("GetBoindingClientRect failed: %08x\n", nsres
);
613 hres
= create_html_rect(nsrect
, pRect
);
615 nsIDOMClientRect_Release(nsrect
);
619 static HRESULT WINAPI
HTMLElement2_setExpression(IHTMLElement2
*iface
, BSTR propname
,
620 BSTR expression
, BSTR language
)
622 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
623 FIXME("(%p)->(%s %s %s)\n", This
, debugstr_w(propname
), debugstr_w(expression
),
624 debugstr_w(language
));
628 static HRESULT WINAPI
HTMLElement2_getExpression(IHTMLElement2
*iface
, BSTR propname
,
631 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
632 FIXME("(%p)->(%s %p)\n", This
, debugstr_w(propname
), expression
);
636 static HRESULT WINAPI
HTMLElement2_removeExpression(IHTMLElement2
*iface
, BSTR propname
,
637 VARIANT_BOOL
*pfSuccess
)
639 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
640 FIXME("(%p)->(%s %p)\n", This
, debugstr_w(propname
), pfSuccess
);
644 static HRESULT WINAPI
HTMLElement2_put_tabIndex(IHTMLElement2
*iface
, short v
)
646 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
649 TRACE("(%p)->(%d)\n", This
, v
);
651 nsres
= nsIDOMHTMLElement_SetTabIndex(This
->nselem
, v
);
653 ERR("GetTabIndex failed: %08x\n", nsres
);
658 static HRESULT WINAPI
HTMLElement2_get_tabIndex(IHTMLElement2
*iface
, short *p
)
660 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
664 TRACE("(%p)->(%p)\n", This
, p
);
666 nsres
= nsIDOMHTMLElement_GetTabIndex(This
->nselem
, &index
);
667 if(NS_FAILED(nsres
)) {
668 ERR("GetTabIndex failed: %08x\n", nsres
);
676 static HRESULT WINAPI
HTMLElement2_focus(IHTMLElement2
*iface
)
678 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
681 TRACE("(%p)\n", This
);
683 nsres
= nsIDOMHTMLElement_Focus(This
->nselem
);
685 ERR("Focus failed: %08x\n", nsres
);
690 static HRESULT WINAPI
HTMLElement2_put_accessKey(IHTMLElement2
*iface
, BSTR v
)
692 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
695 static WCHAR accessKeyW
[] = {'a','c','c','e','s','s','K','e','y',0};
697 TRACE("(%p)->(%s)\n", This
, debugstr_w(v
));
699 V_VT(&var
) = VT_BSTR
;
701 return IHTMLElement_setAttribute(&This
->IHTMLElement_iface
, accessKeyW
, var
, 0);
704 static HRESULT WINAPI
HTMLElement2_get_accessKey(IHTMLElement2
*iface
, BSTR
*p
)
706 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
707 FIXME("(%p)->(%p)\n", This
, p
);
711 static HRESULT WINAPI
HTMLElement2_put_onblur(IHTMLElement2
*iface
, VARIANT v
)
713 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
715 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
717 return set_node_event(&This
->node
, EVENTID_BLUR
, &v
);
720 static HRESULT WINAPI
HTMLElement2_get_onblur(IHTMLElement2
*iface
, VARIANT
*p
)
722 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
724 TRACE("(%p)->(%p)\n", This
, p
);
726 return get_node_event(&This
->node
, EVENTID_BLUR
, p
);
729 static HRESULT WINAPI
HTMLElement2_put_onfocus(IHTMLElement2
*iface
, VARIANT v
)
731 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
733 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
735 return set_node_event(&This
->node
, EVENTID_FOCUS
, &v
);
738 static HRESULT WINAPI
HTMLElement2_get_onfocus(IHTMLElement2
*iface
, VARIANT
*p
)
740 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
742 TRACE("(%p)->(%p)\n", This
, p
);
744 return get_node_event(&This
->node
, EVENTID_FOCUS
, p
);
747 static HRESULT WINAPI
HTMLElement2_put_onresize(IHTMLElement2
*iface
, VARIANT v
)
749 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
750 FIXME("(%p)->()\n", This
);
754 static HRESULT WINAPI
HTMLElement2_get_onresize(IHTMLElement2
*iface
, VARIANT
*p
)
756 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
757 FIXME("(%p)->(%p)\n", This
, p
);
761 static HRESULT WINAPI
HTMLElement2_blur(IHTMLElement2
*iface
)
763 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
766 TRACE("(%p)\n", This
);
768 nsres
= nsIDOMHTMLElement_Blur(This
->nselem
);
769 if(NS_FAILED(nsres
)) {
770 ERR("Blur failed: %08x\n", nsres
);
777 static HRESULT WINAPI
HTMLElement2_addFilter(IHTMLElement2
*iface
, IUnknown
*pUnk
)
779 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
780 FIXME("(%p)->(%p)\n", This
, pUnk
);
784 static HRESULT WINAPI
HTMLElement2_removeFilter(IHTMLElement2
*iface
, IUnknown
*pUnk
)
786 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
787 FIXME("(%p)->(%p)\n", This
, pUnk
);
791 static HRESULT WINAPI
HTMLElement2_get_clientHeight(IHTMLElement2
*iface
, LONG
*p
)
793 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
796 TRACE("(%p)->(%p)\n", This
, p
);
798 nsres
= nsIDOMHTMLElement_GetClientHeight(This
->nselem
, p
);
799 assert(nsres
== NS_OK
);
803 static HRESULT WINAPI
HTMLElement2_get_clientWidth(IHTMLElement2
*iface
, LONG
*p
)
805 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
808 TRACE("(%p)->(%p)\n", This
, p
);
810 nsres
= nsIDOMHTMLElement_GetClientWidth(This
->nselem
, p
);
811 assert(nsres
== NS_OK
);
815 static HRESULT WINAPI
HTMLElement2_get_clientTop(IHTMLElement2
*iface
, LONG
*p
)
817 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
820 TRACE("(%p)->(%p)\n", This
, p
);
822 nsres
= nsIDOMHTMLElement_GetClientTop(This
->nselem
, p
);
823 assert(nsres
== NS_OK
);
825 TRACE("*p = %d\n", *p
);
829 static HRESULT WINAPI
HTMLElement2_get_clientLeft(IHTMLElement2
*iface
, LONG
*p
)
831 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
834 TRACE("(%p)->(%p)\n", This
, p
);
836 nsres
= nsIDOMHTMLElement_GetClientLeft(This
->nselem
, p
);
837 assert(nsres
== NS_OK
);
839 TRACE("*p = %d\n", *p
);
843 static HRESULT WINAPI
HTMLElement2_attachEvent(IHTMLElement2
*iface
, BSTR event
,
844 IDispatch
*pDisp
, VARIANT_BOOL
*pfResult
)
846 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
848 TRACE("(%p)->(%s %p %p)\n", This
, debugstr_w(event
), pDisp
, pfResult
);
850 return attach_event(get_node_event_target(&This
->node
), &This
->node
.doc
->basedoc
, event
, pDisp
, pfResult
);
853 static HRESULT WINAPI
HTMLElement2_detachEvent(IHTMLElement2
*iface
, BSTR event
, IDispatch
*pDisp
)
855 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
857 TRACE("(%p)->(%s %p)\n", This
, debugstr_w(event
), pDisp
);
859 return detach_event(*get_node_event_target(&This
->node
), &This
->node
.doc
->basedoc
, event
, pDisp
);
862 static HRESULT WINAPI
HTMLElement2_get_readyState(IHTMLElement2
*iface
, VARIANT
*p
)
864 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
867 TRACE("(%p)->(%p)\n", This
, p
);
869 if(This
->node
.vtbl
->get_readystate
) {
872 hres
= This
->node
.vtbl
->get_readystate(&This
->node
, &str
);
876 static const WCHAR completeW
[] = {'c','o','m','p','l','e','t','e',0};
878 str
= SysAllocString(completeW
);
880 return E_OUTOFMEMORY
;
888 static HRESULT WINAPI
HTMLElement2_put_onreadystatechange(IHTMLElement2
*iface
, VARIANT v
)
890 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
892 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&v
));
894 return set_node_event(&This
->node
, EVENTID_READYSTATECHANGE
, &v
);
897 static HRESULT WINAPI
HTMLElement2_get_onreadystatechange(IHTMLElement2
*iface
, VARIANT
*p
)
899 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
901 TRACE("(%p)->(%p)\n", This
, p
);
903 return get_node_event(&This
->node
, EVENTID_READYSTATECHANGE
, p
);
906 static HRESULT WINAPI
HTMLElement2_put_onrowsdelete(IHTMLElement2
*iface
, VARIANT v
)
908 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
909 FIXME("(%p)->()\n", This
);
913 static HRESULT WINAPI
HTMLElement2_get_onrowsdelete(IHTMLElement2
*iface
, VARIANT
*p
)
915 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
916 FIXME("(%p)->(%p)\n", This
, p
);
920 static HRESULT WINAPI
HTMLElement2_put_onrowsinserted(IHTMLElement2
*iface
, VARIANT v
)
922 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
923 FIXME("(%p)->()\n", This
);
927 static HRESULT WINAPI
HTMLElement2_get_onrowsinserted(IHTMLElement2
*iface
, VARIANT
*p
)
929 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
930 FIXME("(%p)->(%p)\n", This
, p
);
934 static HRESULT WINAPI
HTMLElement2_put_oncellchange(IHTMLElement2
*iface
, VARIANT v
)
936 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
937 FIXME("(%p)->()\n", This
);
941 static HRESULT WINAPI
HTMLElement2_get_oncellchange(IHTMLElement2
*iface
, VARIANT
*p
)
943 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
944 FIXME("(%p)->(%p)\n", This
, p
);
948 static HRESULT WINAPI
HTMLElement2_put_dir(IHTMLElement2
*iface
, BSTR v
)
950 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
951 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
955 static HRESULT WINAPI
HTMLElement2_get_dir(IHTMLElement2
*iface
, BSTR
*p
)
957 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
961 TRACE("(%p)->(%p)\n", This
, p
);
968 nsAString_Init(&dir_str
, NULL
);
969 nsres
= nsIDOMHTMLElement_GetDir(This
->nselem
, &dir_str
);
970 return return_nsstr(nsres
, &dir_str
, p
);
973 static HRESULT WINAPI
HTMLElement2_createControlRange(IHTMLElement2
*iface
, IDispatch
**range
)
975 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
976 FIXME("(%p)->(%p)\n", This
, range
);
980 static HRESULT WINAPI
HTMLElement2_get_scrollHeight(IHTMLElement2
*iface
, LONG
*p
)
982 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
985 TRACE("(%p)->(%p)\n", This
, p
);
987 nsres
= nsIDOMHTMLElement_GetScrollHeight(This
->nselem
, p
);
988 assert(nsres
== NS_OK
);
990 TRACE("*p = %d\n", *p
);
994 static HRESULT WINAPI
HTMLElement2_get_scrollWidth(IHTMLElement2
*iface
, LONG
*p
)
996 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
999 TRACE("(%p)->(%p)\n", This
, p
);
1001 nsres
= nsIDOMHTMLElement_GetScrollWidth(This
->nselem
, p
);
1002 assert(nsres
== NS_OK
);
1004 TRACE("*p = %d\n", *p
);
1008 static HRESULT WINAPI
HTMLElement2_put_scrollTop(IHTMLElement2
*iface
, LONG v
)
1010 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1012 TRACE("(%p)->(%d)\n", This
, v
);
1015 FIXME("NULL nselem\n");
1019 nsIDOMHTMLElement_SetScrollTop(This
->nselem
, v
);
1023 static HRESULT WINAPI
HTMLElement2_get_scrollTop(IHTMLElement2
*iface
, LONG
*p
)
1025 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1028 TRACE("(%p)->(%p)\n", This
, p
);
1030 nsres
= nsIDOMHTMLElement_GetScrollTop(This
->nselem
, p
);
1031 assert(nsres
== NS_OK
);
1033 TRACE("*p = %d\n", *p
);
1037 static HRESULT WINAPI
HTMLElement2_put_scrollLeft(IHTMLElement2
*iface
, LONG v
)
1039 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1041 TRACE("(%p)->(%d)\n", This
, v
);
1044 FIXME("NULL nselem\n");
1048 nsIDOMHTMLElement_SetScrollLeft(This
->nselem
, v
);
1052 static HRESULT WINAPI
HTMLElement2_get_scrollLeft(IHTMLElement2
*iface
, LONG
*p
)
1054 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1057 TRACE("(%p)->(%p)\n", This
, p
);
1060 return E_INVALIDARG
;
1064 FIXME("NULL nselem\n");
1068 nsres
= nsIDOMHTMLElement_GetScrollLeft(This
->nselem
, p
);
1069 assert(nsres
== NS_OK
);
1071 TRACE("*p = %d\n", *p
);
1075 static HRESULT WINAPI
HTMLElement2_clearAttributes(IHTMLElement2
*iface
)
1077 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1078 FIXME("(%p)\n", This
);
1082 static HRESULT WINAPI
HTMLElement2_mergeAttributes(IHTMLElement2
*iface
, IHTMLElement
*mergeThis
)
1084 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1085 FIXME("(%p)->(%p)\n", This
, mergeThis
);
1089 static HRESULT WINAPI
HTMLElement2_put_oncontextmenu(IHTMLElement2
*iface
, VARIANT v
)
1091 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1092 FIXME("(%p)->()\n", This
);
1096 static HRESULT WINAPI
HTMLElement2_get_oncontextmenu(IHTMLElement2
*iface
, VARIANT
*p
)
1098 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1099 FIXME("(%p)->(%p)\n", This
, p
);
1103 static HRESULT WINAPI
HTMLElement2_insertAdjacentElement(IHTMLElement2
*iface
, BSTR where
,
1104 IHTMLElement
*insertedElement
, IHTMLElement
**inserted
)
1106 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1107 HTMLDOMNode
*ret_node
;
1111 TRACE("(%p)->(%s %p %p)\n", This
, debugstr_w(where
), insertedElement
, inserted
);
1113 elem
= unsafe_impl_from_IHTMLElement(insertedElement
);
1115 return E_INVALIDARG
;
1117 hres
= insert_adjacent_node(This
, where
, elem
->node
.nsnode
, &ret_node
);
1121 hres
= IHTMLDOMNode_QueryInterface(&ret_node
->IHTMLDOMNode_iface
, &IID_IHTMLElement
, (void**)inserted
);
1122 IHTMLDOMNode_Release(&ret_node
->IHTMLDOMNode_iface
);
1126 static HRESULT WINAPI
HTMLElement2_applyElement(IHTMLElement2
*iface
, IHTMLElement
*apply
,
1127 BSTR where
, IHTMLElement
**applied
)
1129 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1130 FIXME("(%p)->(%p %s %p)\n", This
, apply
, debugstr_w(where
), applied
);
1134 static HRESULT WINAPI
HTMLElement2_getAdjacentText(IHTMLElement2
*iface
, BSTR where
, BSTR
*text
)
1136 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1137 FIXME("(%p)->(%s %p)\n", This
, debugstr_w(where
), text
);
1141 static HRESULT WINAPI
HTMLElement2_replaceAdjacentText(IHTMLElement2
*iface
, BSTR where
,
1142 BSTR newText
, BSTR
*oldText
)
1144 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1145 FIXME("(%p)->(%s %s %p)\n", This
, debugstr_w(where
), debugstr_w(newText
), oldText
);
1149 static HRESULT WINAPI
HTMLElement2_get_canHandleChildren(IHTMLElement2
*iface
, VARIANT_BOOL
*p
)
1151 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1152 FIXME("(%p)->(%p)\n", This
, p
);
1156 static HRESULT WINAPI
HTMLElement2_addBehavior(IHTMLElement2
*iface
, BSTR bstrUrl
,
1157 VARIANT
*pvarFactory
, LONG
*pCookie
)
1159 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1160 FIXME("(%p)->(%s %p %p)\n", This
, debugstr_w(bstrUrl
), pvarFactory
, pCookie
);
1164 static HRESULT WINAPI
HTMLElement2_removeBehavior(IHTMLElement2
*iface
, LONG cookie
,
1165 VARIANT_BOOL
*pfResult
)
1167 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1168 FIXME("(%p)->(%d %p)\n", This
, cookie
, pfResult
);
1172 static HRESULT WINAPI
HTMLElement2_get_runtimeStyle(IHTMLElement2
*iface
, IHTMLStyle
**p
)
1174 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1176 FIXME("(%p)->(%p): hack\n", This
, p
);
1178 /* We can't implement correct behavior on top of Gecko (although we could
1179 try a bit harder). Making runtimeStyle behave like regular style is
1180 enough for most use cases. */
1181 if(!This
->runtime_style
) {
1184 hres
= HTMLStyle_Create(This
, &This
->runtime_style
);
1189 *p
= &This
->runtime_style
->IHTMLStyle_iface
;
1190 IHTMLStyle_AddRef(*p
);
1194 static HRESULT WINAPI
HTMLElement2_get_behaviorUrns(IHTMLElement2
*iface
, IDispatch
**p
)
1196 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1197 FIXME("(%p)->(%p)\n", This
, p
);
1201 static HRESULT WINAPI
HTMLElement2_put_tagUrn(IHTMLElement2
*iface
, BSTR v
)
1203 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1204 FIXME("(%p)->(%s)\n", This
, debugstr_w(v
));
1208 static HRESULT WINAPI
HTMLElement2_get_tagUrn(IHTMLElement2
*iface
, BSTR
*p
)
1210 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1211 FIXME("(%p)->(%p)\n", This
, p
);
1215 static HRESULT WINAPI
HTMLElement2_put_onbeforeeditfocus(IHTMLElement2
*iface
, VARIANT vv
)
1217 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1218 FIXME("(%p)->()\n", This
);
1222 static HRESULT WINAPI
HTMLElement2_get_onbeforeeditfocus(IHTMLElement2
*iface
, VARIANT
*p
)
1224 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1225 FIXME("(%p)->(%p)\n", This
, p
);
1229 static HRESULT WINAPI
HTMLElement2_get_readyStateValue(IHTMLElement2
*iface
, LONG
*p
)
1231 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1232 FIXME("(%p)->(%p)\n", This
, p
);
1236 static HRESULT WINAPI
HTMLElement2_getElementsByTagName(IHTMLElement2
*iface
, BSTR v
,
1237 IHTMLElementCollection
**pelColl
)
1239 HTMLElement
*This
= impl_from_IHTMLElement2(iface
);
1240 nsIDOMHTMLCollection
*nscol
;
1244 TRACE("(%p)->(%s %p)\n", This
, debugstr_w(v
), pelColl
);
1246 nsAString_InitDepend(&tag_str
, v
);
1247 nsres
= nsIDOMHTMLElement_GetElementsByTagName(This
->nselem
, &tag_str
, &nscol
);
1248 nsAString_Finish(&tag_str
);
1249 if(NS_FAILED(nsres
)) {
1250 ERR("GetElementByTagName failed: %08x\n", nsres
);
1254 *pelColl
= create_collection_from_htmlcol(This
->node
.doc
, nscol
);
1255 nsIDOMHTMLCollection_Release(nscol
);
1259 static const IHTMLElement2Vtbl HTMLElement2Vtbl
= {
1260 HTMLElement2_QueryInterface
,
1261 HTMLElement2_AddRef
,
1262 HTMLElement2_Release
,
1263 HTMLElement2_GetTypeInfoCount
,
1264 HTMLElement2_GetTypeInfo
,
1265 HTMLElement2_GetIDsOfNames
,
1266 HTMLElement2_Invoke
,
1267 HTMLElement2_get_scopeName
,
1268 HTMLElement2_setCapture
,
1269 HTMLElement2_releaseCapture
,
1270 HTMLElement2_put_onlosecapture
,
1271 HTMLElement2_get_onlosecapture
,
1272 HTMLElement2_componentFromPoint
,
1273 HTMLElement2_doScroll
,
1274 HTMLElement2_put_onscroll
,
1275 HTMLElement2_get_onscroll
,
1276 HTMLElement2_put_ondrag
,
1277 HTMLElement2_get_ondrag
,
1278 HTMLElement2_put_ondragend
,
1279 HTMLElement2_get_ondragend
,
1280 HTMLElement2_put_ondragenter
,
1281 HTMLElement2_get_ondragenter
,
1282 HTMLElement2_put_ondragover
,
1283 HTMLElement2_get_ondragover
,
1284 HTMLElement2_put_ondragleave
,
1285 HTMLElement2_get_ondragleave
,
1286 HTMLElement2_put_ondrop
,
1287 HTMLElement2_get_ondrop
,
1288 HTMLElement2_put_onbeforecut
,
1289 HTMLElement2_get_onbeforecut
,
1290 HTMLElement2_put_oncut
,
1291 HTMLElement2_get_oncut
,
1292 HTMLElement2_put_onbeforecopy
,
1293 HTMLElement2_get_onbeforecopy
,
1294 HTMLElement2_put_oncopy
,
1295 HTMLElement2_get_oncopy
,
1296 HTMLElement2_put_onbeforepaste
,
1297 HTMLElement2_get_onbeforepaste
,
1298 HTMLElement2_put_onpaste
,
1299 HTMLElement2_get_onpaste
,
1300 HTMLElement2_get_currentStyle
,
1301 HTMLElement2_put_onpropertychange
,
1302 HTMLElement2_get_onpropertychange
,
1303 HTMLElement2_getClientRects
,
1304 HTMLElement2_getBoundingClientRect
,
1305 HTMLElement2_setExpression
,
1306 HTMLElement2_getExpression
,
1307 HTMLElement2_removeExpression
,
1308 HTMLElement2_put_tabIndex
,
1309 HTMLElement2_get_tabIndex
,
1311 HTMLElement2_put_accessKey
,
1312 HTMLElement2_get_accessKey
,
1313 HTMLElement2_put_onblur
,
1314 HTMLElement2_get_onblur
,
1315 HTMLElement2_put_onfocus
,
1316 HTMLElement2_get_onfocus
,
1317 HTMLElement2_put_onresize
,
1318 HTMLElement2_get_onresize
,
1320 HTMLElement2_addFilter
,
1321 HTMLElement2_removeFilter
,
1322 HTMLElement2_get_clientHeight
,
1323 HTMLElement2_get_clientWidth
,
1324 HTMLElement2_get_clientTop
,
1325 HTMLElement2_get_clientLeft
,
1326 HTMLElement2_attachEvent
,
1327 HTMLElement2_detachEvent
,
1328 HTMLElement2_get_readyState
,
1329 HTMLElement2_put_onreadystatechange
,
1330 HTMLElement2_get_onreadystatechange
,
1331 HTMLElement2_put_onrowsdelete
,
1332 HTMLElement2_get_onrowsdelete
,
1333 HTMLElement2_put_onrowsinserted
,
1334 HTMLElement2_get_onrowsinserted
,
1335 HTMLElement2_put_oncellchange
,
1336 HTMLElement2_get_oncellchange
,
1337 HTMLElement2_put_dir
,
1338 HTMLElement2_get_dir
,
1339 HTMLElement2_createControlRange
,
1340 HTMLElement2_get_scrollHeight
,
1341 HTMLElement2_get_scrollWidth
,
1342 HTMLElement2_put_scrollTop
,
1343 HTMLElement2_get_scrollTop
,
1344 HTMLElement2_put_scrollLeft
,
1345 HTMLElement2_get_scrollLeft
,
1346 HTMLElement2_clearAttributes
,
1347 HTMLElement2_mergeAttributes
,
1348 HTMLElement2_put_oncontextmenu
,
1349 HTMLElement2_get_oncontextmenu
,
1350 HTMLElement2_insertAdjacentElement
,
1351 HTMLElement2_applyElement
,
1352 HTMLElement2_getAdjacentText
,
1353 HTMLElement2_replaceAdjacentText
,
1354 HTMLElement2_get_canHandleChildren
,
1355 HTMLElement2_addBehavior
,
1356 HTMLElement2_removeBehavior
,
1357 HTMLElement2_get_runtimeStyle
,
1358 HTMLElement2_get_behaviorUrns
,
1359 HTMLElement2_put_tagUrn
,
1360 HTMLElement2_get_tagUrn
,
1361 HTMLElement2_put_onbeforeeditfocus
,
1362 HTMLElement2_get_onbeforeeditfocus
,
1363 HTMLElement2_get_readyStateValue
,
1364 HTMLElement2_getElementsByTagName
,
1367 void HTMLElement2_Init(HTMLElement
*This
)
1369 This
->IHTMLElement2_iface
.lpVtbl
= &HTMLElement2Vtbl
;