mshtml: Added get_style implementation.

This commit is contained in:
Jacek Caban 2006-11-17 13:04:06 +01:00 committed by Alexandre Julliard
parent 1447e6f634
commit 5b1af5b7d1
4 changed files with 1597 additions and 2 deletions

View File

@ -19,6 +19,7 @@ C_SRCS = \
htmlinput.c \ htmlinput.c \
htmlnode.c \ htmlnode.c \
htmlselect.c \ htmlselect.c \
htmlstyle.c \
htmltextcont.c \ htmltextcont.c \
htmltextarea.c \ htmltextarea.c \
install.c \ install.c \

View File

@ -243,8 +243,12 @@ static HRESULT WINAPI HTMLElement_get_parentElement(IHTMLElement *iface, IHTMLEl
static HRESULT WINAPI HTMLElement_get_style(IHTMLElement *iface, IHTMLStyle **p) static HRESULT WINAPI HTMLElement_get_style(IHTMLElement *iface, IHTMLStyle **p)
{ {
HTMLElement *This = HTMLELEM_THIS(iface); HTMLElement *This = HTMLELEM_THIS(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; TRACE("(%p)->(%p)\n", This, p);
/* FIXME: Store IHTMLStyle instead of creating a new instance in every call. */
*p = HTMLStyle_Create();
return S_OK;
} }
static HRESULT WINAPI HTMLElement_put_onhelp(IHTMLElement *iface, VARIANT v) static HRESULT WINAPI HTMLElement_put_onhelp(IHTMLElement *iface, VARIANT v)

1589
dlls/mshtml/htmlstyle.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -329,6 +329,7 @@ void set_document_bscallback(HTMLDocument*,BSCallback*);
IHlink *Hlink_Create(void); IHlink *Hlink_Create(void);
IHTMLSelectionObject *HTMLSelectionObject_Create(nsISelection*); IHTMLSelectionObject *HTMLSelectionObject_Create(nsISelection*);
IHTMLTxtRange *HTMLTxtRange_Create(nsISelection*); IHTMLTxtRange *HTMLTxtRange_Create(nsISelection*);
IHTMLStyle *HTMLStyle_Create(void);
void HTMLElement_Create(HTMLDOMNode*); void HTMLElement_Create(HTMLDOMNode*);
void HTMLBodyElement_Create(HTMLElement*); void HTMLBodyElement_Create(HTMLElement*);