ReactOS  0.4.14-dev-317-g96040ec
htmlstyle.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlstyle.c:

Go to the source code of this file.

Classes

struct  style_tbl_entry_t
 

Functions

 C_ASSERT (sizeof(style_tbl)/sizeof(*style_tbl)==STYLEID_MAX_VALUE)
 
static const style_tbl_entry_tlookup_style_tbl (const WCHAR *name)
 
static LPWSTR fix_px_value (LPCWSTR val)
 
static LPWSTR fix_url_value (LPCWSTR val)
 
HRESULT set_nsstyle_attr (nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, const WCHAR *value, DWORD flags)
 
static HRESULT var_to_styleval (const VARIANT *v, WCHAR *buf, DWORD flags, const WCHAR **ret)
 
HRESULT set_nsstyle_attr_var (nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *value, DWORD flags)
 
static HRESULT set_style_attr (HTMLStyle *This, styleid_t sid, LPCWSTR value, DWORD flags)
 
static HRESULT get_nsstyle_attr_nsval (nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, nsAString *value)
 
static HRESULT nsstyle_to_bstr (const WCHAR *val, DWORD flags, BSTR *p)
 
HRESULT get_nsstyle_attr (nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, BSTR *p, DWORD flags)
 
HRESULT get_nsstyle_attr_var (nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
 
static HRESULT get_style_attr (HTMLStyle *This, styleid_t sid, BSTR *p)
 
static HRESULT check_style_attr_value (HTMLStyle *This, styleid_t sid, LPCWSTR exval, VARIANT_BOOL *p)
 
static HRESULT set_style_pos (HTMLStyle *This, styleid_t sid, float value)
 
static HRESULT set_style_pxattr (nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, LONG value)
 
static HRESULT get_nsstyle_pos (HTMLStyle *This, styleid_t sid, float *p)
 
static HRESULT get_nsstyle_pixel_val (HTMLStyle *This, styleid_t sid, LONG *p)
 
static BOOL is_valid_border_style (BSTR v)
 
static HTMLStyleimpl_from_IHTMLStyle (IHTMLStyle *iface)
 
static HRESULT WINAPI HTMLStyle_QueryInterface (IHTMLStyle *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLStyle_AddRef (IHTMLStyle *iface)
 
static ULONG WINAPI HTMLStyle_Release (IHTMLStyle *iface)
 
static HRESULT WINAPI HTMLStyle_GetTypeInfoCount (IHTMLStyle *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLStyle_GetTypeInfo (IHTMLStyle *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLStyle_GetIDsOfNames (IHTMLStyle *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLStyle_Invoke (IHTMLStyle *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLStyle_put_fontFamily (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_fontFamily (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_fontStyle (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_fontStyle (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_fontVariant (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_fontVariant (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_fontWeight (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_fontWeight (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_fontSize (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_fontSize (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_font (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_font (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_color (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_color (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_background (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_background (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_backgroundColor (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_backgroundColor (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_backgroundImage (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_backgroundImage (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_backgroundRepeat (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_backgroundRepeat (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_backgroundAttachment (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_backgroundAttachment (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_backgroundPosition (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_backgroundPosition (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_backgroundPositionX (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_backgroundPositionX (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_backgroundPositionY (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_backgroundPositionY (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_wordSpacing (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_wordSpacing (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_letterSpacing (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_letterSpacing (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_textDecoration (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_textDecoration (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_textDecorationNone (IHTMLStyle *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLStyle_get_textDecorationNone (IHTMLStyle *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline (IHTMLStyle *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline (IHTMLStyle *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLStyle_put_textDecorationOverline (IHTMLStyle *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLStyle_get_textDecorationOverline (IHTMLStyle *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough (IHTMLStyle *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough (IHTMLStyle *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLStyle_put_textDecorationBlink (IHTMLStyle *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLStyle_get_textDecorationBlink (IHTMLStyle *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLStyle_put_verticalAlign (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_verticalAlign (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_textTransform (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_textTransform (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_textAlign (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_textAlign (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_textIndent (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_textIndent (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_lineHeight (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_lineHeight (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_marginTop (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_marginTop (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_marginRight (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_marginRight (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_marginBottom (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_marginBottom (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_marginLeft (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_put_margin (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_margin (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_get_marginLeft (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_paddingTop (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_paddingTop (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_paddingRight (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_paddingRight (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_paddingBottom (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_paddingBottom (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_paddingLeft (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_paddingLeft (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_padding (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_padding (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_border (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_border (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_borderTop (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_borderTop (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_borderRight (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_borderRight (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_borderBottom (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_borderBottom (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_borderLeft (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_borderLeft (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_borderColor (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_borderColor (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_borderTopColor (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_borderTopColor (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_borderRightColor (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_borderRightColor (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_borderBottomColor (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_borderBottomColor (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_borderLeftColor (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_borderLeftColor (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_borderWidth (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_borderWidth (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_borderTopWidth (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_borderTopWidth (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_borderRightWidth (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_borderRightWidth (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_borderBottomWidth (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_borderBottomWidth (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_borderLeftWidth (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_borderLeftWidth (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_borderStyle (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_borderStyle (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_borderTopStyle (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_borderTopStyle (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_borderRightStyle (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_borderRightStyle (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_borderBottomStyle (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_borderBottomStyle (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_borderLeftStyle (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_borderLeftStyle (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_width (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_width (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_height (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_height (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_styleFloat (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_styleFloat (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_clear (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_clear (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_display (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_display (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_visibility (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_visibility (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_listStyleType (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_listStyleType (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_listStylePosition (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_listStylePosition (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_listStyleImage (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_listStyleImage (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_listStyle (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_listStyle (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_whiteSpace (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_whiteSpace (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_top (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_top (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_left (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_left (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_get_position (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_zIndex (IHTMLStyle *iface, VARIANT v)
 
static HRESULT WINAPI HTMLStyle_get_zIndex (IHTMLStyle *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLStyle_put_overflow (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_overflow (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_pageBreakBefore (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_pageBreakBefore (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_pageBreakAfter (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_pageBreakAfter (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_cssText (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_cssText (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_pixelTop (IHTMLStyle *iface, LONG v)
 
static HRESULT WINAPI HTMLStyle_get_pixelTop (IHTMLStyle *iface, LONG *p)
 
static HRESULT WINAPI HTMLStyle_put_pixelLeft (IHTMLStyle *iface, LONG v)
 
static HRESULT WINAPI HTMLStyle_get_pixelLeft (IHTMLStyle *iface, LONG *p)
 
static HRESULT WINAPI HTMLStyle_put_pixelWidth (IHTMLStyle *iface, LONG v)
 
static HRESULT WINAPI HTMLStyle_get_pixelWidth (IHTMLStyle *iface, LONG *p)
 
static HRESULT WINAPI HTMLStyle_put_pixelHeight (IHTMLStyle *iface, LONG v)
 
static HRESULT WINAPI HTMLStyle_get_pixelHeight (IHTMLStyle *iface, LONG *p)
 
static HRESULT WINAPI HTMLStyle_put_posTop (IHTMLStyle *iface, float v)
 
static HRESULT WINAPI HTMLStyle_get_posTop (IHTMLStyle *iface, float *p)
 
static HRESULT WINAPI HTMLStyle_put_posLeft (IHTMLStyle *iface, float v)
 
static HRESULT WINAPI HTMLStyle_get_posLeft (IHTMLStyle *iface, float *p)
 
static HRESULT WINAPI HTMLStyle_put_posWidth (IHTMLStyle *iface, float v)
 
static HRESULT WINAPI HTMLStyle_get_posWidth (IHTMLStyle *iface, float *p)
 
static HRESULT WINAPI HTMLStyle_put_posHeight (IHTMLStyle *iface, float v)
 
static HRESULT WINAPI HTMLStyle_get_posHeight (IHTMLStyle *iface, float *p)
 
static HRESULT WINAPI HTMLStyle_put_cursor (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_cursor (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_put_clip (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_clip (IHTMLStyle *iface, BSTR *p)
 
static void set_opacity (HTMLStyle *This, const WCHAR *val)
 
static void update_filter (HTMLStyle *This)
 
static HRESULT WINAPI HTMLStyle_put_filter (IHTMLStyle *iface, BSTR v)
 
static HRESULT WINAPI HTMLStyle_get_filter (IHTMLStyle *iface, BSTR *p)
 
static HRESULT WINAPI HTMLStyle_setAttribute (IHTMLStyle *iface, BSTR strAttributeName, VARIANT AttributeValue, LONG lFlags)
 
static HRESULT WINAPI HTMLStyle_getAttribute (IHTMLStyle *iface, BSTR strAttributeName, LONG lFlags, VARIANT *AttributeValue)
 
static HRESULT WINAPI HTMLStyle_removeAttribute (IHTMLStyle *iface, BSTR strAttributeName, LONG lFlags, VARIANT_BOOL *pfSuccess)
 
static HRESULT WINAPI HTMLStyle_toString (IHTMLStyle *iface, BSTR *String)
 
static HRESULT HTMLStyle_get_dispid (DispatchEx *dispex, BSTR name, DWORD flags, DISPID *dispid)
 
static HRESULT get_style_from_elem (HTMLElement *elem, nsIDOMCSSStyleDeclaration **ret)
 
HRESULT HTMLStyle_Create (HTMLElement *elem, HTMLStyle **ret)
 
HRESULT get_elem_style (HTMLElement *elem, styleid_t styleid, BSTR *ret)
 
HRESULT set_elem_style (HTMLElement *elem, styleid_t styleid, const WCHAR *val)
 

Variables

static const WCHAR attrBackground []
 
static const WCHAR attrBackgroundAttachment []
 
static const WCHAR attrBackgroundColor []
 
static const WCHAR attrBackgroundImage []
 
static const WCHAR attrBackgroundPosition []
 
static const WCHAR attrBackgroundPositionX []
 
static const WCHAR attrBackgroundPositionY []
 
static const WCHAR attrBackgroundRepeat []
 
static const WCHAR attrBorder []
 
static const WCHAR attrBorderBottom []
 
static const WCHAR attrBorderBottomColor []
 
static const WCHAR attrBorderBottomStyle []
 
static const WCHAR attrBorderBottomWidth []
 
static const WCHAR attrBorderColor []
 
static const WCHAR attrBorderLeft []
 
static const WCHAR attrBorderLeftColor []
 
static const WCHAR attrBorderLeftStyle []
 
static const WCHAR attrBorderLeftWidth []
 
static const WCHAR attrBorderRight []
 
static const WCHAR attrBorderRightColor []
 
static const WCHAR attrBorderRightStyle []
 
static const WCHAR attrBorderRightWidth []
 
static const WCHAR attrBorderTop []
 
static const WCHAR attrBorderTopColor []
 
static const WCHAR attrBorderStyle []
 
static const WCHAR attrBorderTopStyle []
 
static const WCHAR attrBorderTopWidth []
 
static const WCHAR attrBorderWidth []
 
static const WCHAR attrBottom []
 
static const WCHAR attrBoxSizing []
 
static const WCHAR attrClear []
 
static const WCHAR attrClip []
 
static const WCHAR attrColor []
 
static const WCHAR attrCursor []
 
static const WCHAR attrDirection []
 
static const WCHAR attrDisplay []
 
static const WCHAR attrFilter []
 
static const WCHAR attrFloat []
 
static const WCHAR attrFontFamily []
 
static const WCHAR attrFontSize []
 
static const WCHAR attrFontStyle []
 
static const WCHAR attrFontVariant []
 
static const WCHAR attrFontWeight []
 
static const WCHAR attrHeight []
 
static const WCHAR attrLeft []
 
static const WCHAR attrLetterSpacing []
 
static const WCHAR attrLineHeight []
 
static const WCHAR attrListStyle []
 
static const WCHAR attrListStyleType []
 
static const WCHAR attrListStylePosition []
 
static const WCHAR attrMargin []
 
static const WCHAR attrMarginBottom []
 
static const WCHAR attrMarginLeft []
 
static const WCHAR attrMarginRight []
 
static const WCHAR attrMarginTop []
 
static const WCHAR attrMaxHeight []
 
static const WCHAR attrMaxWidth []
 
static const WCHAR attrMinHeight []
 
static const WCHAR attrMinWidth []
 
static const WCHAR attrOutline []
 
static const WCHAR attrOverflow []
 
static const WCHAR attrOverflowX []
 
static const WCHAR attrOverflowY []
 
static const WCHAR attrPadding []
 
static const WCHAR attrPaddingBottom []
 
static const WCHAR attrPaddingLeft []
 
static const WCHAR attrPaddingRight []
 
static const WCHAR attrPaddingTop []
 
static const WCHAR attrPageBreakAfter []
 
static const WCHAR attrPageBreakBefore []
 
static const WCHAR attrPosition []
 
static const WCHAR attrRight []
 
static const WCHAR attrTableLayout []
 
static const WCHAR attrTextAlign []
 
static const WCHAR attrTextDecoration []
 
static const WCHAR attrTextIndent []
 
static const WCHAR attrTextTransform []
 
static const WCHAR attrTop []
 
static const WCHAR attrVerticalAlign []
 
static const WCHAR attrVisibility []
 
static const WCHAR attrWhiteSpace []
 
static const WCHAR attrWidth []
 
static const WCHAR attrWordSpacing []
 
static const WCHAR attrWordWrap []
 
static const WCHAR attrZIndex []
 
static const WCHAR pxW [] = {'p','x',0}
 
static const style_tbl_entry_t style_tbl []
 
static const WCHAR valLineThrough []
 
static const WCHAR valUnderline []
 
static const WCHAR szNormal []
 
static const WCHAR styleNone []
 
static const WCHAR valOverline []
 
static const WCHAR valBlink []
 
static const WCHAR px_formatW [] = {'%','d','p','x',0}
 
static const WCHAR emptyW [] = {0}
 
static const IHTMLStyleVtbl HTMLStyleVtbl
 
static const dispex_static_data_vtbl_t HTMLStyle_dispex_vtbl
 
static const tid_t HTMLStyle_iface_tids []
 
static dispex_static_data_t HTMLStyle_dispex
 

Function Documentation

◆ C_ASSERT()

C_ASSERT ( sizeof(style_tbl)/sizeof style_tbl = =STYLEID_MAX_VALUE)

◆ check_style_attr_value()

static HRESULT check_style_attr_value ( HTMLStyle This,
styleid_t  sid,
LPCWSTR  exval,
VARIANT_BOOL p 
)
static

Definition at line 601 of file htmlstyle.c.

602 {
603  nsAString str_value;
604  const PRUnichar *value;
605 
606  nsAString_Init(&str_value, NULL);
607 
608  get_nsstyle_attr_nsval(This->nsstyle, sid, &str_value);
609 
610  nsAString_GetData(&str_value, &value);
611  *p = strcmpW(value, exval) ? VARIANT_FALSE : VARIANT_TRUE;
612  nsAString_Finish(&str_value);
613 
614  TRACE("%s -> %x\n", debugstr_w(style_tbl[sid].name), *p);
615  return S_OK;
616 }
FT_UInt sid
Definition: cffcmap.c:139
static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, nsAString *value)
Definition: htmlstyle.c:465
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
GLsizei const GLfloat * value
Definition: glext.h:6069
#define S_OK
Definition: intsafe.h:59
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
Definition: name.c:36
WINE_UNICODE_INLINE int strcmpW(const WCHAR *str1, const WCHAR *str2)
Definition: unicode.h:229
WCHAR PRUnichar
Definition: nsiface.idl:48
static const style_tbl_entry_t style_tbl[]
Definition: htmlstyle.c:201
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by HTMLStyle_get_textDecorationBlink(), HTMLStyle_get_textDecorationLineThrough(), HTMLStyle_get_textDecorationNone(), HTMLStyle_get_textDecorationOverline(), and HTMLStyle_get_textDecorationUnderline().

◆ fix_px_value()

static LPWSTR fix_px_value ( LPCWSTR  val)
static

Definition at line 327 of file htmlstyle.c.

328 {
329  LPCWSTR ptr = val;
330 
331  while(*ptr) {
332  while(*ptr && isspaceW(*ptr))
333  ptr++;
334  if(!*ptr)
335  break;
336 
337  while(*ptr && isdigitW(*ptr))
338  ptr++;
339 
340  if(!*ptr || isspaceW(*ptr)) {
341  LPWSTR ret, p;
342  int len = strlenW(val)+1;
343 
344  ret = heap_alloc((len+2)*sizeof(WCHAR));
345  memcpy(ret, val, (ptr-val)*sizeof(WCHAR));
346  p = ret + (ptr-val);
347  *p++ = 'p';
348  *p++ = 'x';
349  strcpyW(p, ptr);
350 
351  TRACE("fixed %s -> %s\n", debugstr_w(val), debugstr_w(ret));
352 
353  return ret;
354  }
355 
356  while(*ptr && !isspaceW(*ptr))
357  ptr++;
358  }
359 
360  return NULL;
361 }
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
Definition: unicode.h:212
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
WINE_UNICODE_INLINE int isspaceW(WCHAR wc)
Definition: unicode.h:165
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define debugstr_w
Definition: kernel32.h:32
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
GLuint GLfloat * val
Definition: glext.h:7180
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
int ret
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
GLenum GLsizei len
Definition: glext.h:6722
WINE_UNICODE_INLINE WCHAR * strcpyW(WCHAR *dst, const WCHAR *src)
Definition: unicode.h:219
WINE_UNICODE_INLINE int isdigitW(WCHAR wc)
Definition: unicode.h:170
GLfloat GLfloat p
Definition: glext.h:8902
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by set_nsstyle_attr().

◆ fix_url_value()

static LPWSTR fix_url_value ( LPCWSTR  val)
static

Definition at line 363 of file htmlstyle.c.

364 {
365  WCHAR *ret, *ptr;
366 
367  static const WCHAR urlW[] = {'u','r','l','('};
368 
369  if(strncmpW(val, urlW, sizeof(urlW)/sizeof(WCHAR)) || !strchrW(val, '\\'))
370  return NULL;
371 
372  ret = heap_strdupW(val);
373 
374  for(ptr = ret; *ptr; ptr++) {
375  if(*ptr == '\\')
376  *ptr = '/';
377  }
378 
379  return ret;
380 }
WINE_UNICODE_INLINE WCHAR * strchrW(const WCHAR *str, WCHAR ch)
Definition: unicode.h:248
WINE_UNICODE_INLINE int strncmpW(const WCHAR *str1, const WCHAR *str2, int n)
Definition: unicode.h:235
static WCHAR * heap_strdupW(const WCHAR *str)
Definition: propsheet.c:178
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
GLuint GLfloat * val
Definition: glext.h:7180
__wchar_t WCHAR
Definition: xmlstorage.h:180
int ret

Referenced by set_nsstyle_attr().

◆ get_elem_style()

HRESULT get_elem_style ( HTMLElement elem,
styleid_t  styleid,
BSTR ret 
)

Definition at line 3219 of file htmlstyle.c.

3220 {
3222  HRESULT hres;
3223 
3225  if(FAILED(hres))
3226  return hres;
3227 
3228  hres = get_nsstyle_attr(style, styleid, ret, 0);
3229  nsIDOMCSSStyleDeclaration_Release(style);
3230  return hres;
3231 }
HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, BSTR *p, DWORD flags)
Definition: htmlstyle.c:529
static size_t elem
Definition: string.c:68
static HRESULT get_style_from_elem(HTMLElement *elem, nsIDOMCSSStyleDeclaration **ret)
Definition: htmlstyle.c:3164
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
int ret
Arabic default style
Definition: afstyles.h:93

Referenced by HTMLBodyElement_get_scroll().

◆ get_nsstyle_attr()

HRESULT get_nsstyle_attr ( nsIDOMCSSStyleDeclaration nsstyle,
styleid_t  sid,
BSTR p,
DWORD  flags 
)

Definition at line 529 of file htmlstyle.c.

530 {
531  nsAString str_value;
532  const PRUnichar *value;
533  HRESULT hres;
534 
535  nsAString_Init(&str_value, NULL);
536 
537  get_nsstyle_attr_nsval(nsstyle, sid, &str_value);
538 
539  nsAString_GetData(&str_value, &value);
541  nsAString_Finish(&str_value);
542 
543  TRACE("%s -> %s\n", debugstr_w(style_tbl[sid].name), debugstr_w(*p));
544  return hres;
545 }
FT_UInt sid
Definition: cffcmap.c:139
static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, nsAString *value)
Definition: htmlstyle.c:465
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
GLbitfield flags
Definition: glext.h:7161
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
GLsizei const GLfloat * value
Definition: glext.h:6069
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
Definition: name.c:36
WCHAR PRUnichar
Definition: nsiface.idl:48
static HRESULT nsstyle_to_bstr(const WCHAR *val, DWORD flags, BSTR *p)
Definition: htmlstyle.c:483
static const style_tbl_entry_t style_tbl[]
Definition: htmlstyle.c:201
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by get_elem_style(), get_style_attr(), HTMLCurrentStyle3_get_whiteSpace(), HTMLCurrentStyle_get_backgroundImage(), HTMLCurrentStyle_get_backgroundRepeat(), HTMLCurrentStyle_get_borderBottomStyle(), HTMLCurrentStyle_get_borderColor(), HTMLCurrentStyle_get_borderLeftStyle(), HTMLCurrentStyle_get_borderRightStyle(), HTMLCurrentStyle_get_borderStyle(), HTMLCurrentStyle_get_borderTopStyle(), HTMLCurrentStyle_get_borderWidth(), HTMLCurrentStyle_get_cursor(), HTMLCurrentStyle_get_display(), HTMLCurrentStyle_get_fontFamily(), HTMLCurrentStyle_get_fontStyle(), HTMLCurrentStyle_get_fontVariant(), HTMLCurrentStyle_get_margin(), HTMLCurrentStyle_get_overflow(), HTMLCurrentStyle_get_padding(), HTMLCurrentStyle_get_position(), HTMLCurrentStyle_get_textAlign(), HTMLCurrentStyle_get_textDecoration(), HTMLCurrentStyle_get_textTransform(), HTMLCurrentStyle_get_visibility(), HTMLStyle2_get_direction(), HTMLStyle2_get_overflowX(), HTMLStyle2_get_overflowY(), HTMLStyle2_get_position(), HTMLStyle2_get_tableLayout(), HTMLStyle3_get_wordWrap(), HTMLStyle6_get_boxSizing(), HTMLStyle6_get_outline(), HTMLStyle_get_clip(), HTMLStyle_get_pageBreakAfter(), HTMLStyle_get_pageBreakBefore(), and HTMLStyle_get_whiteSpace().

◆ get_nsstyle_attr_nsval()

static HRESULT get_nsstyle_attr_nsval ( nsIDOMCSSStyleDeclaration nsstyle,
styleid_t  sid,
nsAString value 
)
static

Definition at line 465 of file htmlstyle.c.

466 {
467  nsAString str_name;
468  nsresult nsres;
469 
470  nsAString_InitDepend(&str_name, style_tbl[sid].name);
471 
472  nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(nsstyle, &str_name, value);
473  if(NS_FAILED(nsres)) {
474  ERR("SetProperty failed: %08x\n", nsres);
475  return E_FAIL;
476  }
477 
478  nsAString_Finish(&str_name);
479 
480  return NS_OK;
481 }
FT_UInt sid
Definition: cffcmap.c:139
#define E_FAIL
Definition: ddrawi.h:102
#define NS_OK
#define NS_FAILED(res)
#define ERR(fmt,...)
Definition: debug.h:109
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
Definition: name.c:36
HRESULT nsresult
Definition: nsiface.idl:39
static const style_tbl_entry_t style_tbl[]
Definition: htmlstyle.c:201

Referenced by check_style_attr_value(), get_nsstyle_attr(), get_nsstyle_attr_var(), get_nsstyle_pixel_val(), get_nsstyle_pos(), HTMLStyle_get_backgroundPositionX(), HTMLStyle_get_backgroundPositionY(), HTMLStyle_put_backgroundPositionX(), and HTMLStyle_put_backgroundPositionY().

◆ get_nsstyle_attr_var()

HRESULT get_nsstyle_attr_var ( nsIDOMCSSStyleDeclaration nsstyle,
styleid_t  sid,
VARIANT p,
DWORD  flags 
)

Definition at line 547 of file htmlstyle.c.

548 {
549  nsAString str_value;
550  const PRUnichar *value;
551  BOOL set = FALSE;
552  HRESULT hres = S_OK;
553 
554  nsAString_Init(&str_value, NULL);
555 
556  get_nsstyle_attr_nsval(nsstyle, sid, &str_value);
557 
558  nsAString_GetData(&str_value, &value);
559 
560  if(flags & ATTR_STR_TO_INT) {
561  const PRUnichar *ptr = value;
562  BOOL neg = FALSE;
563  INT i = 0;
564 
565  if(*ptr == '-') {
566  neg = TRUE;
567  ptr++;
568  }
569 
570  while(isdigitW(*ptr))
571  i = i*10 + (*ptr++ - '0');
572 
573  if(!*ptr) {
574  V_VT(p) = VT_I4;
575  V_I4(p) = neg ? -i : i;
576  set = TRUE;
577  }
578  }
579 
580  if(!set) {
581  BSTR str;
582 
584  if(SUCCEEDED(hres)) {
585  V_VT(p) = VT_BSTR;
586  V_BSTR(p) = str;
587  }
588  }
589 
590  nsAString_Finish(&str_value);
591 
592  TRACE("%s -> %s\n", debugstr_w(style_tbl[sid].name), debugstr_variant(p));
593  return S_OK;
594 }
#define TRUE
Definition: types.h:120
Definition: compat.h:1939
#define ATTR_STR_TO_INT
Definition: htmlstyle.h:141
FT_UInt sid
Definition: cffcmap.c:139
OLECHAR * BSTR
Definition: compat.h:1934
static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, nsAString *value)
Definition: htmlstyle.c:465
int32_t INT
Definition: typedefs.h:56
#define V_I4(A)
Definition: oleauto.h:247
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
unsigned int BOOL
Definition: ntddk_ex.h:94
#define debugstr_w
Definition: kernel32.h:32
static PVOID ptr
Definition: dispmode.c:27
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
GLbitfield flags
Definition: glext.h:7161
#define V_VT(A)
Definition: oleauto.h:211
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
GLsizei const GLfloat * value
Definition: glext.h:6069
#define V_BSTR(A)
Definition: oleauto.h:226
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define S_OK
Definition: intsafe.h:59
WINE_UNICODE_INLINE int isdigitW(WCHAR wc)
Definition: unicode.h:170
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
Definition: name.c:36
WCHAR PRUnichar
Definition: nsiface.idl:48
static HRESULT nsstyle_to_bstr(const WCHAR *val, DWORD flags, BSTR *p)
Definition: htmlstyle.c:483
static const style_tbl_entry_t style_tbl[]
Definition: htmlstyle.c:201
GLfloat GLfloat p
Definition: glext.h:8902
Definition: _set.h:46
#define SUCCEEDED(hr)
Definition: intsafe.h:57

Referenced by HTMLCurrentStyle_get_backgroundColor(), HTMLCurrentStyle_get_borderBottomColor(), HTMLCurrentStyle_get_borderBottomWidth(), HTMLCurrentStyle_get_borderLeftColor(), HTMLCurrentStyle_get_borderLeftWidth(), HTMLCurrentStyle_get_borderRightColor(), HTMLCurrentStyle_get_borderRightWidth(), HTMLCurrentStyle_get_borderTopColor(), HTMLCurrentStyle_get_borderTopWidth(), HTMLCurrentStyle_get_bottom(), HTMLCurrentStyle_get_color(), HTMLCurrentStyle_get_fontSize(), HTMLCurrentStyle_get_fontWeight(), HTMLCurrentStyle_get_height(), HTMLCurrentStyle_get_left(), HTMLCurrentStyle_get_letterSpacing(), HTMLCurrentStyle_get_lineHeight(), HTMLCurrentStyle_get_marginBottom(), HTMLCurrentStyle_get_marginLeft(), HTMLCurrentStyle_get_marginRight(), HTMLCurrentStyle_get_marginTop(), HTMLCurrentStyle_get_paddingBottom(), HTMLCurrentStyle_get_paddingLeft(), HTMLCurrentStyle_get_paddingRight(), HTMLCurrentStyle_get_paddingTop(), HTMLCurrentStyle_get_right(), HTMLCurrentStyle_get_textIndent(), HTMLCurrentStyle_get_top(), HTMLCurrentStyle_get_verticalAlign(), HTMLCurrentStyle_get_width(), HTMLCurrentStyle_get_zIndex(), HTMLStyle2_get_bottom(), HTMLStyle2_get_right(), HTMLStyle4_get_minHeight(), HTMLStyle5_get_maxHeight(), HTMLStyle5_get_maxWidth(), HTMLStyle5_get_minWidth(), HTMLStyle_get_backgroundColor(), HTMLStyle_get_borderBottomColor(), HTMLStyle_get_borderBottomWidth(), HTMLStyle_get_borderLeftColor(), HTMLStyle_get_borderLeftWidth(), HTMLStyle_get_borderRightColor(), HTMLStyle_get_borderRightWidth(), HTMLStyle_get_borderTopColor(), HTMLStyle_get_borderTopWidth(), HTMLStyle_get_color(), HTMLStyle_get_fontSize(), HTMLStyle_get_height(), HTMLStyle_get_left(), HTMLStyle_get_letterSpacing(), HTMLStyle_get_lineHeight(), HTMLStyle_get_marginBottom(), HTMLStyle_get_marginLeft(), HTMLStyle_get_marginRight(), HTMLStyle_get_marginTop(), HTMLStyle_get_paddingBottom(), HTMLStyle_get_paddingLeft(), HTMLStyle_get_paddingRight(), HTMLStyle_get_paddingTop(), HTMLStyle_get_textIndent(), HTMLStyle_get_top(), HTMLStyle_get_verticalAlign(), HTMLStyle_get_width(), HTMLStyle_get_wordSpacing(), and HTMLStyle_get_zIndex().

◆ get_nsstyle_pixel_val()

static HRESULT get_nsstyle_pixel_val ( HTMLStyle This,
styleid_t  sid,
LONG p 
)
static

Definition at line 676 of file htmlstyle.c.

677 {
678  nsAString str_value;
679  HRESULT hres;
680 
681  if(!p)
682  return E_POINTER;
683 
684  nsAString_Init(&str_value, NULL);
685 
686  hres = get_nsstyle_attr_nsval(This->nsstyle, sid, &str_value);
687  if(hres == S_OK) {
688  WCHAR *ptr;
689  const PRUnichar *value;
690 
691  nsAString_GetData(&str_value, &value);
692  if(value) {
693  *p = strtolW(value, &ptr, 10);
694 
695  if(*ptr == '.') {
696  /* Skip all digits. We have tests showing that we should not round the value. */
697  while(isdigitW(*++ptr));
698  }
699 
700  if(*ptr && strcmpW(ptr, pxW)) {
701  nsAString_Finish(&str_value);
702  FIXME("%s: only px values are currently supported\n", debugstr_w(value));
703  hres = E_NOTIMPL;
704  }
705  }else {
706  *p = 0;
707  }
708  }
709 
710  nsAString_Finish(&str_value);
711  return hres;
712 }
#define strtolW(s, e, b)
Definition: unicode.h:33
FT_UInt sid
Definition: cffcmap.c:139
static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, nsAString *value)
Definition: htmlstyle.c:465
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
HRESULT hres
Definition: protocol.c:465
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
GLsizei const GLfloat * value
Definition: glext.h:6069
static const WCHAR pxW[]
Definition: htmlstyle.c:194
#define S_OK
Definition: intsafe.h:59
#define E_NOTIMPL
Definition: ddrawi.h:99
WINE_UNICODE_INLINE int isdigitW(WCHAR wc)
Definition: unicode.h:170
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
WINE_UNICODE_INLINE int strcmpW(const WCHAR *str1, const WCHAR *str2)
Definition: unicode.h:229
WCHAR PRUnichar
Definition: nsiface.idl:48
GLfloat GLfloat p
Definition: glext.h:8902
#define E_POINTER
Definition: winerror.h:2365

Referenced by HTMLStyle_get_pixelHeight(), HTMLStyle_get_pixelLeft(), HTMLStyle_get_pixelTop(), and HTMLStyle_get_pixelWidth().

◆ get_nsstyle_pos()

static HRESULT get_nsstyle_pos ( HTMLStyle This,
styleid_t  sid,
float *  p 
)
static

Definition at line 639 of file htmlstyle.c.

640 {
641  nsAString str_value;
642  HRESULT hres;
643 
644  TRACE("%p %d %p\n", This, sid, p);
645 
646  *p = 0.0f;
647 
648  nsAString_Init(&str_value, NULL);
649 
650  hres = get_nsstyle_attr_nsval(This->nsstyle, sid, &str_value);
651  if(hres == S_OK)
652  {
653  WCHAR *ptr;
654  const PRUnichar *value;
655 
656  nsAString_GetData(&str_value, &value);
657  if(value)
658  {
659  *p = strtolW(value, &ptr, 10);
660 
661  if(*ptr && strcmpW(ptr, pxW))
662  {
663  nsAString_Finish(&str_value);
664  FIXME("only px values are currently supported\n");
665  hres = E_FAIL;
666  }
667  }
668  }
669 
670  TRACE("ret %f\n", *p);
671 
672  nsAString_Finish(&str_value);
673  return hres;
674 }
#define strtolW(s, e, b)
Definition: unicode.h:33
FT_UInt sid
Definition: cffcmap.c:139
static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, nsAString *value)
Definition: htmlstyle.c:465
#define E_FAIL
Definition: ddrawi.h:102
#define FIXME(fmt,...)
Definition: debug.h:110
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
GLsizei const GLfloat * value
Definition: glext.h:6069
static const WCHAR pxW[]
Definition: htmlstyle.c:194
#define S_OK
Definition: intsafe.h:59
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
WINE_UNICODE_INLINE int strcmpW(const WCHAR *str1, const WCHAR *str2)
Definition: unicode.h:229
WCHAR PRUnichar
Definition: nsiface.idl:48
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by HTMLStyle_get_posHeight(), HTMLStyle_get_posLeft(), HTMLStyle_get_posTop(), and HTMLStyle_get_posWidth().

◆ get_style_attr()

◆ get_style_from_elem()

static HRESULT get_style_from_elem ( HTMLElement elem,
nsIDOMCSSStyleDeclaration **  ret 
)
static

Definition at line 3164 of file htmlstyle.c.

3165 {
3166  nsIDOMElementCSSInlineStyle *nselemstyle;
3167  nsresult nsres;
3168 
3169  if(!elem->nselem) {
3170  FIXME("NULL nselem\n");
3171  return E_NOTIMPL;
3172  }
3173 
3174  nsres = nsIDOMHTMLElement_QueryInterface(elem->nselem, &IID_nsIDOMElementCSSInlineStyle,
3175  (void**)&nselemstyle);
3176  assert(nsres == NS_OK);
3177 
3178  nsres = nsIDOMElementCSSInlineStyle_GetStyle(nselemstyle, ret);
3179  nsIDOMElementCSSInlineStyle_Release(nselemstyle);
3180  if(NS_FAILED(nsres)) {
3181  ERR("GetStyle failed: %08x\n", nsres);
3182  return E_FAIL;
3183  }
3184 
3185  return S_OK;
3186 }
#define assert(x)
Definition: debug.h:53
#define E_FAIL
Definition: ddrawi.h:102
#define NS_OK
static size_t elem
Definition: string.c:68
#define FIXME(fmt,...)
Definition: debug.h:110
#define NS_FAILED(res)
int ret
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
#define E_NOTIMPL
Definition: ddrawi.h:99
HRESULT nsresult
Definition: nsiface.idl:39

Referenced by get_elem_style(), HTMLStyle_Create(), and set_elem_style().

◆ HTMLStyle_AddRef()

static ULONG WINAPI HTMLStyle_AddRef ( IHTMLStyle *  iface)
static

Definition at line 776 of file htmlstyle.c.

777 {
780 
781  TRACE("(%p) ref=%d\n", This, ref);
782 
783  return ref;
784 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53

◆ HTMLStyle_Create()

HRESULT HTMLStyle_Create ( HTMLElement elem,
HTMLStyle **  ret 
)

Definition at line 3188 of file htmlstyle.c.

3189 {
3190  nsIDOMCSSStyleDeclaration *nsstyle;
3191  HTMLStyle *style;
3192  HRESULT hres;
3193 
3194  hres = get_style_from_elem(elem, &nsstyle);
3195  if(FAILED(hres))
3196  return hres;
3197 
3198  style = heap_alloc_zero(sizeof(HTMLStyle));
3199  if(!style) {
3200  nsIDOMCSSStyleDeclaration_Release(nsstyle);
3201  return E_OUTOFMEMORY;
3202  }
3203 
3204  style->IHTMLStyle_iface.lpVtbl = &HTMLStyleVtbl;
3205  style->ref = 1;
3206  style->nsstyle = nsstyle;
3207  style->elem = elem;
3210 
3211  nsIDOMCSSStyleDeclaration_AddRef(nsstyle);
3212 
3213  init_dispex(&style->dispex, (IUnknown*)&style->IHTMLStyle_iface, &HTMLStyle_dispex);
3214 
3215  *ret = style;
3216  return S_OK;
3217 }
static dispex_static_data_t HTMLStyle_dispex
Definition: htmlstyle.c:3157
void HTMLStyle3_Init(HTMLStyle *) DECLSPEC_HIDDEN
Definition: htmlstyle3.c:938
void HTMLStyle2_Init(HTMLStyle *) DECLSPEC_HIDDEN
Definition: htmlstyle2.c:620
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static size_t elem
Definition: string.c:68
static HRESULT get_style_from_elem(HTMLElement *elem, nsIDOMCSSStyleDeclaration **ret)
Definition: htmlstyle.c:3164
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
int ret
#define S_OK
Definition: intsafe.h:59
static const IHTMLStyleVtbl HTMLStyleVtbl
Definition: htmlstyle.c:2939
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919
Arabic default style
Definition: afstyles.h:93

Referenced by HTMLElement2_get_runtimeStyle(), and HTMLElement_get_style().

◆ HTMLStyle_get_background()

static HRESULT WINAPI HTMLStyle_get_background ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1003 of file htmlstyle.c.

1004 {
1006 
1007  TRACE("(%p)->(%p)\n", This, p);
1008 
1010 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_backgroundAttachment()

static HRESULT WINAPI HTMLStyle_get_backgroundAttachment ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1086 of file htmlstyle.c.

1087 {
1089 
1090  TRACE("(%p)->(%p)\n", This, p);
1091 
1093 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_backgroundColor()

static HRESULT WINAPI HTMLStyle_get_backgroundColor ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1021 of file htmlstyle.c.

1022 {
1024 
1025  TRACE("(%p)->(%p)\n", This, p);
1026 
1027  return get_nsstyle_attr_var(This->nsstyle, STYLEID_BACKGROUND_COLOR, p, 0);
1028 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_backgroundImage()

static HRESULT WINAPI HTMLStyle_get_backgroundImage ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1039 of file htmlstyle.c.

1040 {
1042 
1043  TRACE("(%p)->(%p)\n", This, p);
1044 
1046 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_backgroundPosition()

static HRESULT WINAPI HTMLStyle_get_backgroundPosition ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1104 of file htmlstyle.c.

1105 {
1107 
1108  TRACE("(%p)->(%p)\n", This, p);
1109 
1111 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_backgroundPositionX()

static HRESULT WINAPI HTMLStyle_get_backgroundPositionX ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1167 of file htmlstyle.c.

1168 {
1170  nsAString pos_str;
1171  BSTR ret;
1172  HRESULT hres;
1173 
1174  TRACE("(%p)->(%p)\n", This, p);
1175 
1176  nsAString_Init(&pos_str, NULL);
1178  if(SUCCEEDED(hres)) {
1179  const PRUnichar *pos, *space;
1180 
1181  nsAString_GetData(&pos_str, &pos);
1182  space = strchrW(pos, ' ');
1183  if(!space) {
1184  WARN("no space in %s\n", debugstr_w(pos));
1185  space = pos + strlenW(pos);
1186  }
1187 
1188  if(space != pos) {
1190  if(!ret)
1191  hres = E_OUTOFMEMORY;
1192  }else {
1193  ret = NULL;
1194  }
1195  }
1196  nsAString_Finish(&pos_str);
1197  if(FAILED(hres))
1198  return hres;
1199 
1200  TRACE("returning %s\n", debugstr_w(ret));
1201  V_VT(p) = VT_BSTR;
1202  V_BSTR(p) = ret;
1203  return S_OK;
1204 }
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
Definition: unicode.h:212
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
Definition: oleaut.c:342
WINE_UNICODE_INLINE WCHAR * strchrW(const WCHAR *str, WCHAR ch)
Definition: unicode.h:248
#define WARN(fmt,...)
Definition: debug.h:111
OLECHAR * BSTR
Definition: compat.h:1934
static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, nsAString *value)
Definition: htmlstyle.c:465
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
int ret
#define V_VT(A)
Definition: oleauto.h:211
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
#define V_BSTR(A)
Definition: oleauto.h:226
#define S_OK
Definition: intsafe.h:59
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
WCHAR PRUnichar
Definition: nsiface.idl:48
GLfloat GLfloat p
Definition: glext.h:8902
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ HTMLStyle_get_backgroundPositionY()

static HRESULT WINAPI HTMLStyle_get_backgroundPositionY ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1263 of file htmlstyle.c.

1264 {
1266  nsAString pos_str;
1267  BSTR ret;
1268  HRESULT hres;
1269 
1270  TRACE("(%p)->(%p)\n", This, p);
1271 
1272  nsAString_Init(&pos_str, NULL);
1274  if(SUCCEEDED(hres)) {
1275  const PRUnichar *pos, *posy;
1276 
1277  nsAString_GetData(&pos_str, &pos);
1278  posy = strchrW(pos, ' ');
1279  if(posy) {
1280  ret = SysAllocString(posy+1);
1281  if(!ret)
1282  hres = E_OUTOFMEMORY;
1283  }else {
1284  ret = NULL;
1285  }
1286  }
1287  nsAString_Finish(&pos_str);
1288  if(FAILED(hres))
1289  return hres;
1290 
1291  TRACE("returning %s\n", debugstr_w(ret));
1292  V_VT(p) = VT_BSTR;
1293  V_BSTR(p) = ret;
1294  return S_OK;
1295 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
WINE_UNICODE_INLINE WCHAR * strchrW(const WCHAR *str, WCHAR ch)
Definition: unicode.h:248
OLECHAR * BSTR
Definition: compat.h:1934
static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, nsAString *value)
Definition: htmlstyle.c:465
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
int ret
#define V_VT(A)
Definition: oleauto.h:211
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
#define V_BSTR(A)
Definition: oleauto.h:226
#define S_OK
Definition: intsafe.h:59
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
WCHAR PRUnichar
Definition: nsiface.idl:48
GLfloat GLfloat p
Definition: glext.h:8902
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ HTMLStyle_get_backgroundRepeat()

static HRESULT WINAPI HTMLStyle_get_backgroundRepeat ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1068 of file htmlstyle.c.

1069 {
1071 
1072  TRACE("(%p)->(%p)\n", This, p);
1073 
1075 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_border()

static HRESULT WINAPI HTMLStyle_get_border ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1720 of file htmlstyle.c.

1721 {
1723 
1724  TRACE("(%p)->(%p)\n", This, p);
1725 
1726  return get_style_attr(This, STYLEID_BORDER, p);
1727 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderBottom()

static HRESULT WINAPI HTMLStyle_get_borderBottom ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1764 of file htmlstyle.c.

1765 {
1767  TRACE("(%p)->(%p)\n", This, p);
1769 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderBottomColor()

static HRESULT WINAPI HTMLStyle_get_borderBottomColor ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1852 of file htmlstyle.c.

1853 {
1855 
1856  TRACE("(%p)->(%p)\n", This, p);
1857 
1859 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderBottomStyle()

static HRESULT WINAPI HTMLStyle_get_borderBottomStyle ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2059 of file htmlstyle.c.

2060 {
2062  TRACE("(%p)->(%p)\n", This, p);
2064 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderBottomWidth()

static HRESULT WINAPI HTMLStyle_get_borderBottomWidth ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1938 of file htmlstyle.c.

1939 {
1941  TRACE("(%p)->(%p)\n", This, p);
1943 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderColor()

static HRESULT WINAPI HTMLStyle_get_borderColor ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1798 of file htmlstyle.c.

1799 {
1801 
1802  TRACE("(%p)->(%p)\n", This, p);
1803 
1805 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderLeft()

static HRESULT WINAPI HTMLStyle_get_borderLeft ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1780 of file htmlstyle.c.

1781 {
1783 
1784  TRACE("(%p)->(%p)\n", This, p);
1785 
1787 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderLeftColor()

static HRESULT WINAPI HTMLStyle_get_borderLeftColor ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1870 of file htmlstyle.c.

1871 {
1873 
1874  TRACE("(%p)->(%p)\n", This, p);
1875 
1876  return get_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_LEFT_COLOR, p, 0);
1877 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderLeftStyle()

static HRESULT WINAPI HTMLStyle_get_borderLeftStyle ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2077 of file htmlstyle.c.

2078 {
2080  TRACE("(%p)->(%p)\n", This, p);
2082 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderLeftWidth()

static HRESULT WINAPI HTMLStyle_get_borderLeftWidth ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1954 of file htmlstyle.c.

1955 {
1957  TRACE("(%p)->(%p)\n", This, p);
1958  return get_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_LEFT_WIDTH, p, 0);
1959 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderRight()

static HRESULT WINAPI HTMLStyle_get_borderRight ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1750 of file htmlstyle.c.

1751 {
1753  TRACE("(%p)->(%p)\n", This, p);
1755 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderRightColor()

static HRESULT WINAPI HTMLStyle_get_borderRightColor ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1834 of file htmlstyle.c.

1835 {
1837 
1838  TRACE("(%p)->(%p)\n", This, p);
1839 
1840  return get_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_RIGHT_COLOR, p, 0);
1841 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderRightStyle()

static HRESULT WINAPI HTMLStyle_get_borderRightStyle ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2041 of file htmlstyle.c.

2042 {
2044  TRACE("(%p)->(%p)\n", This, p);
2046 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderRightWidth()

static HRESULT WINAPI HTMLStyle_get_borderRightWidth ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1920 of file htmlstyle.c.

1921 {
1923 
1924  TRACE("(%p)->(%p)\n", This, p);
1925 
1926  return get_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_RIGHT_WIDTH, p, 0);
1927 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderStyle()

static HRESULT WINAPI HTMLStyle_get_borderStyle ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2005 of file htmlstyle.c.

2006 {
2008  TRACE("(%p)->(%p)\n", This, p);
2010 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderTop()

static HRESULT WINAPI HTMLStyle_get_borderTop ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1736 of file htmlstyle.c.

1737 {
1739  TRACE("(%p)->(%p)\n", This, p);
1741 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderTopColor()

static HRESULT WINAPI HTMLStyle_get_borderTopColor ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1816 of file htmlstyle.c.

1817 {
1819 
1820  TRACE("(%p)->(%p)\n", This, p);
1821 
1822  return get_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_TOP_COLOR, p, 0);
1823 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderTopStyle()

static HRESULT WINAPI HTMLStyle_get_borderTopStyle ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2023 of file htmlstyle.c.

2024 {
2026  TRACE("(%p)->(%p)\n", This, p);
2028 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderTopWidth()

static HRESULT WINAPI HTMLStyle_get_borderTopWidth ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1902 of file htmlstyle.c.

1903 {
1905 
1906  TRACE("(%p)->(%p)\n", This, p);
1907 
1908  return get_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_TOP_WIDTH, p, 0);
1909 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_borderWidth()

static HRESULT WINAPI HTMLStyle_get_borderWidth ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1886 of file htmlstyle.c.

1887 {
1889  TRACE("(%p)->(%p)\n", This, p);
1891 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_clear()

static HRESULT WINAPI HTMLStyle_get_clear ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2147 of file htmlstyle.c.

2148 {
2150 
2151  TRACE("(%p)->(%p)\n", This, p);
2152 
2153  return get_style_attr(This, STYLEID_CLEAR, p);
2154 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_clip()

static HRESULT WINAPI HTMLStyle_get_clip ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2641 of file htmlstyle.c.

2642 {
2644 
2645  TRACE("(%p)->(%p)\n", This, p);
2646 
2648 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define ATTR_REMOVE_COMMA
Definition: htmlstyle.h:143
HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, BSTR *p, DWORD flags)
Definition: htmlstyle.c:529
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_color()

static HRESULT WINAPI HTMLStyle_get_color ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 985 of file htmlstyle.c.

986 {
988 
989  TRACE("(%p)->(%p)\n", This, p);
990 
991  return get_nsstyle_attr_var(This->nsstyle, STYLEID_COLOR, p, 0);
992 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_cssText()

static HRESULT WINAPI HTMLStyle_get_cssText ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2427 of file htmlstyle.c.

2428 {
2430  nsAString text_str;
2431  nsresult nsres;
2432 
2433  TRACE("(%p)->(%p)\n", This, p);
2434 
2435  /* FIXME: Gecko style formatting is different than IE (uppercase). */
2436  nsAString_Init(&text_str, NULL);
2437  nsres = nsIDOMCSSStyleDeclaration_GetCssText(This->nsstyle, &text_str);
2438  if(NS_SUCCEEDED(nsres)) {
2439  const PRUnichar *text;
2440 
2441  nsAString_GetData(&text_str, &text);
2442  *p = *text ? SysAllocString(text) : NULL;
2443  }else {
2444  FIXME("GetCssStyle failed: %08x\n", nsres);
2445  *p = NULL;
2446  }
2447 
2448  nsAString_Finish(&text_str);
2449  return S_OK;
2450 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
const WCHAR * text
Definition: package.c:1827
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
#define NS_SUCCEEDED(res)
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
#define S_OK
Definition: intsafe.h:59
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
HRESULT nsresult
Definition: nsiface.idl:39
WCHAR PRUnichar
Definition: nsiface.idl:48
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_cursor()

static HRESULT WINAPI HTMLStyle_get_cursor ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2623 of file htmlstyle.c.

2624 {
2626 
2627  TRACE("(%p)->(%p)\n", This, p);
2628 
2629  return get_style_attr(This, STYLEID_CURSOR, p);
2630 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_dispid()

static HRESULT HTMLStyle_get_dispid ( DispatchEx dispex,
BSTR  name,
DWORD  flags,
DISPID dispid 
)
static

Definition at line 3128 of file htmlstyle.c.

3129 {
3130  const style_tbl_entry_t *style_entry;
3131 
3132  style_entry = lookup_style_tbl(name);
3133  if(style_entry) {
3134  *dispid = style_entry->dispid;
3135  return S_OK;
3136  }
3137 
3138  return DISP_E_UNKNOWNNAME;
3139 }
#define DISP_E_UNKNOWNNAME
Definition: winerror.h:2515
DISPID dispid
Definition: htmlstyle.c:198
Definition: htmlstyle.c:196
#define S_OK
Definition: intsafe.h:59
static const style_tbl_entry_t * lookup_style_tbl(const WCHAR *name)
Definition: htmlstyle.c:307
Definition: name.c:36

◆ HTMLStyle_get_display()

static HRESULT WINAPI HTMLStyle_get_display ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2165 of file htmlstyle.c.

2166 {
2168 
2169  TRACE("(%p)->(%p)\n", This, p);
2170 
2172 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_filter()

static HRESULT WINAPI HTMLStyle_get_filter ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2778 of file htmlstyle.c.

2779 {
2781 
2782  TRACE("(%p)->(%p)\n", This, p);
2783 
2784  if(!This->elem) {
2785  FIXME("Element already destroyed\n");
2786  return E_UNEXPECTED;
2787  }
2788 
2789  if(This->elem->filter) {
2790  *p = SysAllocString(This->elem->filter);
2791  if(!*p)
2792  return E_OUTOFMEMORY;
2793  }else {
2794  *p = NULL;
2795  }
2796 
2797  return S_OK;
2798 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
#define E_UNEXPECTED
Definition: winerror.h:2456
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_font()

static HRESULT WINAPI HTMLStyle_get_font ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 969 of file htmlstyle.c.

970 {
972  FIXME("(%p)->(%p)\n", This, p);
973  return E_NOTIMPL;
974 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_fontFamily()

static HRESULT WINAPI HTMLStyle_get_fontFamily ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 844 of file htmlstyle.c.

845 {
847 
848  TRACE("(%p)->(%p)\n", This, p);
849 
851 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_fontSize()

static HRESULT WINAPI HTMLStyle_get_fontSize ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 953 of file htmlstyle.c.

954 {
956 
957  TRACE("(%p)->(%p)\n", This, p);
958 
959  return get_nsstyle_attr_var(This->nsstyle, STYLEID_FONT_SIZE, p, 0);
960 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_fontStyle()

static HRESULT WINAPI HTMLStyle_get_fontStyle ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 871 of file htmlstyle.c.

872 {
874 
875  TRACE("(%p)->(%p)\n", This, p);
876 
878 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_fontVariant()

static HRESULT WINAPI HTMLStyle_get_fontVariant ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 896 of file htmlstyle.c.

897 {
899  TRACE("(%p)->(%p)\n", This, p);
900 
901  if(!p)
902  return E_INVALIDARG;
903 
905 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_fontWeight()

static HRESULT WINAPI HTMLStyle_get_fontWeight ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 935 of file htmlstyle.c.

936 {
938 
939  TRACE("(%p)->(%p)\n", This, p);
940 
942 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_height()

static HRESULT WINAPI HTMLStyle_get_height ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 2111 of file htmlstyle.c.

2112 {
2114 
2115  TRACE("(%p)->(%p)\n", This, p);
2116 
2117  return get_nsstyle_attr_var(This->nsstyle, STYLEID_HEIGHT, p, 0);
2118 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_left()

static HRESULT WINAPI HTMLStyle_get_left ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 2305 of file htmlstyle.c.

2306 {
2308 
2309  TRACE("(%p)->(%p)\n", This, p);
2310 
2311  return get_nsstyle_attr_var(This->nsstyle, STYLEID_LEFT, p, 0);
2312 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_letterSpacing()

static HRESULT WINAPI HTMLStyle_get_letterSpacing ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1322 of file htmlstyle.c.

1323 {
1325  TRACE("(%p)->(%p)\n", This, p);
1326  return get_nsstyle_attr_var(This->nsstyle, STYLEID_LETTER_SPACING, p, 0);
1327 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_lineHeight()

static HRESULT WINAPI HTMLStyle_get_lineHeight ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1526 of file htmlstyle.c.

1527 {
1529 
1530  TRACE("(%p)->(%p)\n", This, p);
1531 
1532  return get_nsstyle_attr_var(This->nsstyle, STYLEID_LINE_HEIGHT, p, 0);
1533 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_listStyle()

static HRESULT WINAPI HTMLStyle_get_listStyle ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2251 of file htmlstyle.c.

2252 {
2254 
2255  TRACE("(%p)->(%p)\n", This, p);
2256 
2258 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_listStyleImage()

static HRESULT WINAPI HTMLStyle_get_listStyleImage ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2235 of file htmlstyle.c.

2236 {
2238  FIXME("(%p)->(%p)\n", This, p);
2239  return E_NOTIMPL;
2240 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_listStylePosition()

static HRESULT WINAPI HTMLStyle_get_listStylePosition ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2219 of file htmlstyle.c.

2220 {
2222 
2223  TRACE("(%p)->(%p)\n", This, p);
2224 
2226 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_listStyleType()

static HRESULT WINAPI HTMLStyle_get_listStyleType ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2201 of file htmlstyle.c.

2202 {
2204 
2205  TRACE("(%p)->(%p)\n", This, p);
2206 
2208 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_margin()

static HRESULT WINAPI HTMLStyle_get_margin ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1605 of file htmlstyle.c.

1606 {
1608 
1609  TRACE("(%p)->(%p)\n", This, p);
1610 
1611  return get_style_attr(This, STYLEID_MARGIN, p);
1612 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_marginBottom()

static HRESULT WINAPI HTMLStyle_get_marginBottom ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1578 of file htmlstyle.c.

1579 {
1581 
1582  TRACE("(%p)->(%p)\n", This, p);
1583 
1584  return get_nsstyle_attr_var(This->nsstyle, STYLEID_MARGIN_BOTTOM, p, 0);
1585 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_marginLeft()

static HRESULT WINAPI HTMLStyle_get_marginLeft ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1614 of file htmlstyle.c.

1615 {
1617  TRACE("(%p)->(%p)\n", This, p);
1618  return get_nsstyle_attr_var(This->nsstyle, STYLEID_MARGIN_LEFT, p, 0);
1619 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_marginRight()

static HRESULT WINAPI HTMLStyle_get_marginRight ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1562 of file htmlstyle.c.

1563 {
1565  TRACE("(%p)->(%p)\n", This, p);
1566  return get_nsstyle_attr_var(This->nsstyle, STYLEID_MARGIN_RIGHT, p, 0);
1567 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_marginTop()

static HRESULT WINAPI HTMLStyle_get_marginTop ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1544 of file htmlstyle.c.

1545 {
1547 
1548  TRACE("(%p)->(%p)\n", This, p);
1549 
1550  return get_nsstyle_attr_var(This->nsstyle, STYLEID_MARGIN_TOP, p, 0);
1551 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_overflow()

static HRESULT WINAPI HTMLStyle_get_overflow ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2360 of file htmlstyle.c.

2361 {
2363 
2364  TRACE("(%p)->(%p)\n", This, p);
2365 
2366  if(!p)
2367  return E_INVALIDARG;
2368 
2370 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_padding()

static HRESULT WINAPI HTMLStyle_get_padding ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1702 of file htmlstyle.c.

1703 {
1705 
1706  TRACE("(%p)->(%p)\n", This, p);
1707 
1709 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_paddingBottom()

static HRESULT WINAPI HTMLStyle_get_paddingBottom ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1666 of file htmlstyle.c.

1667 {
1669 
1670  TRACE("(%p)->(%p)\n", This, p);
1671 
1672  return get_nsstyle_attr_var(This->nsstyle, STYLEID_PADDING_BOTTOM, p, 0);
1673 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_paddingLeft()

static HRESULT WINAPI HTMLStyle_get_paddingLeft ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1684 of file htmlstyle.c.

1685 {
1687 
1688  TRACE("(%p)->(%p)\n", This, p);
1689 
1690  return get_nsstyle_attr_var(This->nsstyle, STYLEID_PADDING_LEFT, p, 0);
1691 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_paddingRight()

static HRESULT WINAPI HTMLStyle_get_paddingRight ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1648 of file htmlstyle.c.

1649 {
1651 
1652  TRACE("(%p)->(%p)\n", This, p);
1653 
1654  return get_nsstyle_attr_var(This->nsstyle, STYLEID_PADDING_RIGHT, p, 0);
1655 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_paddingTop()

static HRESULT WINAPI HTMLStyle_get_paddingTop ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1630 of file htmlstyle.c.

1631 {
1633 
1634  TRACE("(%p)->(%p)\n", This, p);
1635 
1636  return get_nsstyle_attr_var(This->nsstyle, STYLEID_PADDING_TOP, p, 0);
1637 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_pageBreakAfter()

static HRESULT WINAPI HTMLStyle_get_pageBreakAfter ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2399 of file htmlstyle.c.

2400 {
2402 
2403  TRACE("(%p)->(%p)\n", This, p);
2404 
2405  return get_nsstyle_attr(This->nsstyle, STYLEID_PAGE_BREAK_AFTER, p, 0);
2406 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, BSTR *p, DWORD flags)
Definition: htmlstyle.c:529
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_pageBreakBefore()

static HRESULT WINAPI HTMLStyle_get_pageBreakBefore ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2381 of file htmlstyle.c.

2382 {
2384 
2385  TRACE("(%p)->(%p)\n", This, p);
2386 
2387  return get_nsstyle_attr(This->nsstyle, STYLEID_PAGE_BREAK_BEFORE, p, 0);
2388 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, BSTR *p, DWORD flags)
Definition: htmlstyle.c:529
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_pixelHeight()

static HRESULT WINAPI HTMLStyle_get_pixelHeight ( IHTMLStyle *  iface,
LONG p 
)
static

Definition at line 2515 of file htmlstyle.c.

2516 {
2518 
2519  TRACE("(%p)->(%p)\n", This, p);
2520 
2522 }
static HRESULT get_nsstyle_pixel_val(HTMLStyle *This, styleid_t sid, LONG *p)
Definition: htmlstyle.c:676
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_pixelLeft()

static HRESULT WINAPI HTMLStyle_get_pixelLeft ( IHTMLStyle *  iface,
LONG p 
)
static

Definition at line 2479 of file htmlstyle.c.

2480 {
2482 
2483  TRACE("(%p)->(%p)\n", This, p);
2484 
2486 }
static HRESULT get_nsstyle_pixel_val(HTMLStyle *This, styleid_t sid, LONG *p)
Definition: htmlstyle.c:676
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_pixelTop()

static HRESULT WINAPI HTMLStyle_get_pixelTop ( IHTMLStyle *  iface,
LONG p 
)
static

Definition at line 2461 of file htmlstyle.c.

2462 {
2464 
2465  TRACE("(%p)->(%p)\n", This, p);
2466 
2468 }
static HRESULT get_nsstyle_pixel_val(HTMLStyle *This, styleid_t sid, LONG *p)
Definition: htmlstyle.c:676
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_pixelWidth()

static HRESULT WINAPI HTMLStyle_get_pixelWidth ( IHTMLStyle *  iface,
LONG p 
)
static

Definition at line 2497 of file htmlstyle.c.

2498 {
2500 
2501  TRACE("(%p)->(%p)\n", This, p);
2502 
2504 }
static HRESULT get_nsstyle_pixel_val(HTMLStyle *This, styleid_t sid, LONG *p)
Definition: htmlstyle.c:676
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_posHeight()

static HRESULT WINAPI HTMLStyle_get_posHeight ( IHTMLStyle *  iface,
float *  p 
)
static

Definition at line 2599 of file htmlstyle.c.

2600 {
2602 
2603  TRACE("(%p)->(%p)\n", This, p);
2604 
2605  if(!p)
2606  return E_POINTER;
2607 
2609  *p = 0.0f;
2610 
2611  return S_OK;
2612 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
static HRESULT get_nsstyle_pos(HTMLStyle *This, styleid_t sid, float *p)
Definition: htmlstyle.c:639
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902
#define E_POINTER
Definition: winerror.h:2365

◆ HTMLStyle_get_position()

static HRESULT WINAPI HTMLStyle_get_position ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2314 of file htmlstyle.c.

2315 {
2317  TRACE("(%p)->(%p)\n", This, p);
2318  return IHTMLStyle2_get_position(&This->IHTMLStyle2_iface, p);
2319 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_posLeft()

static HRESULT WINAPI HTMLStyle_get_posLeft ( IHTMLStyle *  iface,
float *  p 
)
static

Definition at line 2554 of file htmlstyle.c.

2555 {
2557 
2558  TRACE("(%p)->(%p)\n", This, p);
2559 
2560  if(!p)
2561  return E_POINTER;
2562 
2563  return get_nsstyle_pos(This, STYLEID_LEFT, p);
2564 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
static HRESULT get_nsstyle_pos(HTMLStyle *This, styleid_t sid, float *p)
Definition: htmlstyle.c:639
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902
#define E_POINTER
Definition: winerror.h:2365

◆ HTMLStyle_get_posTop()

static HRESULT WINAPI HTMLStyle_get_posTop ( IHTMLStyle *  iface,
float *  p 
)
static

Definition at line 2533 of file htmlstyle.c.

2534 {
2536 
2537  TRACE("(%p)->(%p)\n", This, p);
2538 
2539  if(!p)
2540  return E_POINTER;
2541 
2542  return get_nsstyle_pos(This, STYLEID_TOP, p);
2543 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
static HRESULT get_nsstyle_pos(HTMLStyle *This, styleid_t sid, float *p)
Definition: htmlstyle.c:639
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902
#define E_POINTER
Definition: winerror.h:2365

◆ HTMLStyle_get_posWidth()

static HRESULT WINAPI HTMLStyle_get_posWidth ( IHTMLStyle *  iface,
float *  p 
)
static

Definition at line 2575 of file htmlstyle.c.

2576 {
2578 
2579  TRACE("(%p)->(%p)\n", This, p);
2580 
2581  if(!p)
2582  return E_POINTER;
2583 
2585  *p = 0.0f;
2586 
2587  return S_OK;
2588 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
static HRESULT get_nsstyle_pos(HTMLStyle *This, styleid_t sid, float *p)
Definition: htmlstyle.c:639
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902
#define E_POINTER
Definition: winerror.h:2365

◆ HTMLStyle_get_styleFloat()

static HRESULT WINAPI HTMLStyle_get_styleFloat ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2129 of file htmlstyle.c.

2130 {
2132 
2133  TRACE("(%p)->(%p)\n", This, p);
2134 
2135  return get_style_attr(This, STYLEID_FLOAT, p);
2136 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_textAlign()

static HRESULT WINAPI HTMLStyle_get_textAlign ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1490 of file htmlstyle.c.

1491 {
1493 
1494  TRACE("(%p)->(%p)\n", This, p);
1495 
1497 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_textDecoration()

static HRESULT WINAPI HTMLStyle_get_textDecoration ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1346 of file htmlstyle.c.

1347 {
1349 
1350  TRACE("(%p)->(%p)\n", This, p);
1351 
1353 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_textDecorationBlink()

static HRESULT WINAPI HTMLStyle_get_textDecorationBlink ( IHTMLStyle *  iface,
VARIANT_BOOL p 
)
static

Definition at line 1436 of file htmlstyle.c.

1437 {
1439 
1440  TRACE("(%p)->(%p)\n", This, p);
1441 
1443 }
static HRESULT check_style_attr_value(HTMLStyle *This, styleid_t sid, LPCWSTR exval, VARIANT_BOOL *p)
Definition: htmlstyle.c:601
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
static const WCHAR valBlink[]
Definition: htmlstyle.c:301
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_textDecorationLineThrough()

static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough ( IHTMLStyle *  iface,
VARIANT_BOOL p 
)
static

Definition at line 1418 of file htmlstyle.c.

1419 {
1421 
1422  TRACE("(%p)->(%p)\n", This, p);
1423 
1425 }
static HRESULT check_style_attr_value(HTMLStyle *This, styleid_t sid, LPCWSTR exval, VARIANT_BOOL *p)
Definition: htmlstyle.c:601
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static const WCHAR valLineThrough[]
Definition: htmlstyle.c:291
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_textDecorationNone()

static HRESULT WINAPI HTMLStyle_get_textDecorationNone ( IHTMLStyle *  iface,
VARIANT_BOOL p 
)
static

Definition at line 1364 of file htmlstyle.c.

1365 {
1367 
1368  TRACE("(%p)->(%p)\n", This, p);
1369 
1371 }
static HRESULT check_style_attr_value(HTMLStyle *This, styleid_t sid, LPCWSTR exval, VARIANT_BOOL *p)
Definition: htmlstyle.c:601
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static const WCHAR styleNone[]
Definition: htmlstyle.c:297
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_textDecorationOverline()

static HRESULT WINAPI HTMLStyle_get_textDecorationOverline ( IHTMLStyle *  iface,
VARIANT_BOOL p 
)
static

Definition at line 1400 of file htmlstyle.c.

1401 {
1403 
1404  TRACE("(%p)->(%p)\n", This, p);
1405 
1407 }
static HRESULT check_style_attr_value(HTMLStyle *This, styleid_t sid, LPCWSTR exval, VARIANT_BOOL *p)
Definition: htmlstyle.c:601
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static const WCHAR valOverline[]
Definition: htmlstyle.c:299
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_textDecorationUnderline()

static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline ( IHTMLStyle *  iface,
VARIANT_BOOL p 
)
static

Definition at line 1382 of file htmlstyle.c.

1383 {
1385 
1386  TRACE("(%p)->(%p)\n", This, p);
1387 
1389 }
static HRESULT check_style_attr_value(HTMLStyle *This, styleid_t sid, LPCWSTR exval, VARIANT_BOOL *p)
Definition: htmlstyle.c:601
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
static const WCHAR valUnderline[]
Definition: htmlstyle.c:293
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_textIndent()

static HRESULT WINAPI HTMLStyle_get_textIndent ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1508 of file htmlstyle.c.

1509 {
1511 
1512  TRACE("(%p)->(%p)\n", This, p);
1513 
1514  return get_nsstyle_attr_var(This->nsstyle, STYLEID_TEXT_INDENT, p, 0);
1515 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_textTransform()

static HRESULT WINAPI HTMLStyle_get_textTransform ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 1472 of file htmlstyle.c.

1473 {
1475 
1476  TRACE("(%p)->(%p)\n", This, p);
1477 
1479 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_top()

static HRESULT WINAPI HTMLStyle_get_top ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 2287 of file htmlstyle.c.

2288 {
2290 
2291  TRACE("(%p)->(%p)\n", This, p);
2292 
2293  return get_nsstyle_attr_var(This->nsstyle, STYLEID_TOP, p, 0);
2294 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_verticalAlign()

static HRESULT WINAPI HTMLStyle_get_verticalAlign ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1454 of file htmlstyle.c.

1455 {
1457 
1458  TRACE("(%p)->(%p)\n", This, p);
1459 
1460  return get_nsstyle_attr_var(This->nsstyle, STYLEID_VERTICAL_ALIGN, p, 0);
1461 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_visibility()

static HRESULT WINAPI HTMLStyle_get_visibility ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2183 of file htmlstyle.c.

2184 {
2186 
2187  TRACE("(%p)->(%p)\n", This, p);
2188 
2190 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_style_attr(HTMLStyle *This, styleid_t sid, BSTR *p)
Definition: htmlstyle.c:596
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_whiteSpace()

static HRESULT WINAPI HTMLStyle_get_whiteSpace ( IHTMLStyle *  iface,
BSTR p 
)
static

Definition at line 2269 of file htmlstyle.c.

2270 {
2272 
2273  TRACE("(%p)->(%p)\n", This, p);
2274 
2275  return get_nsstyle_attr(This->nsstyle, STYLEID_WHITE_SPACE, p, 0);
2276 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, BSTR *p, DWORD flags)
Definition: htmlstyle.c:529
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_width()

static HRESULT WINAPI HTMLStyle_get_width ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 2093 of file htmlstyle.c.

2094 {
2096 
2097  TRACE("(%p)->(%p)\n", This, p);
2098 
2099  return get_nsstyle_attr_var(This->nsstyle, STYLEID_WIDTH, p, 0);
2100 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_wordSpacing()

static HRESULT WINAPI HTMLStyle_get_wordSpacing ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 1306 of file htmlstyle.c.

1307 {
1309  TRACE("(%p)->(%p)\n", This, p);
1310  return get_nsstyle_attr_var(This->nsstyle, STYLEID_WORD_SPACING, p, 0);
1311 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_get_zIndex()

static HRESULT WINAPI HTMLStyle_get_zIndex ( IHTMLStyle *  iface,
VARIANT p 
)
static

Definition at line 2330 of file htmlstyle.c.

2331 {
2333 
2334  TRACE("(%p)->(%p)\n", This, p);
2335 
2337 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define ATTR_STR_TO_INT
Definition: htmlstyle.h:141
HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)
Definition: htmlstyle.c:547
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLStyle_getAttribute()

static HRESULT WINAPI HTMLStyle_getAttribute ( IHTMLStyle *  iface,
BSTR  strAttributeName,
LONG  lFlags,
VARIANT AttributeValue 
)
static

Definition at line 2842 of file htmlstyle.c.

2844 {
2846  HRESULT hres;
2847  DISPID dispid;
2848 
2849  TRACE("(%p)->(%s v%p %08x)\n", This, debugstr_w(strAttributeName),
2850  AttributeValue, lFlags);
2851 
2852  if(!AttributeValue || !strAttributeName)
2853  return E_INVALIDARG;
2854 
2855  if(lFlags == 1)
2856  FIXME("Parameter lFlags ignored\n");
2857 
2858  hres = HTMLStyle_GetIDsOfNames(iface, &IID_NULL, &strAttributeName, 1,
2859  LOCALE_USER_DEFAULT, &dispid);
2860  if(hres == S_OK)
2861  {
2862  DISPPARAMS params = {NULL, NULL, 0, 0 };
2863 
2865  DISPATCH_PROPERTYGET, &params, AttributeValue, NULL, NULL);
2866  }
2867  else
2868  {
2869  FIXME("Custom attributes not supported.\n");
2870  }
2871 
2872  return hres;
2873 }
#define DISPATCH_PROPERTYGET
Definition: oleauto.h:1007
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define LOCALE_USER_DEFAULT
static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlstyle.c:826
static HRESULT WINAPI HTMLStyle_GetIDsOfNames(IHTMLStyle *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlstyle.c:817
GLenum const GLfloat * params
Definition: glext.h:5645
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define LOCALE_SYSTEM_DEFAULT
#define IID_NULL
Definition: guiddef.h:98
#define S_OK
Definition: intsafe.h:59
static VARIANTARG static DISPID
Definition: ordinal.c:49
struct stdole::DISPPARAMS DISPPARAMS

◆ HTMLStyle_GetIDsOfNames()

static HRESULT WINAPI HTMLStyle_GetIDsOfNames ( IHTMLStyle *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 817 of file htmlstyle.c.

820 {
822  return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
823  lcid, rgDispId);
824 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
REFIID riid
Definition: precomp.h:44

Referenced by HTMLStyle_getAttribute(), and HTMLStyle_setAttribute().

◆ HTMLStyle_GetTypeInfo()

static HRESULT WINAPI HTMLStyle_GetTypeInfo ( IHTMLStyle *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 810 of file htmlstyle.c.

812 {
814  return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
815 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739

◆ HTMLStyle_GetTypeInfoCount()

static HRESULT WINAPI HTMLStyle_GetTypeInfoCount ( IHTMLStyle *  iface,
UINT pctinfo 
)
static

Definition at line 804 of file htmlstyle.c.

805 {
807  return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
808 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739

◆ HTMLStyle_Invoke()

static HRESULT WINAPI HTMLStyle_Invoke ( IHTMLStyle *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 826 of file htmlstyle.c.

829 {
831  return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
832  wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
833 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
REFIID riid
Definition: precomp.h:44
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

Referenced by HTMLStyle_getAttribute(), and HTMLStyle_setAttribute().

◆ HTMLStyle_put_background()

static HRESULT WINAPI HTMLStyle_put_background ( IHTMLStyle *  iface,
BSTR  v 
)
static

Definition at line 994 of file htmlstyle.c.

995 {
997 
998  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
999 
1000  return set_style_attr(This, STYLEID_BACKGROUND, v, 0);
1001 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
static HRESULT set_style_attr(HTMLStyle *This, styleid_t sid, LPCWSTR value, DWORD flags)
Definition: htmlstyle.c:460
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
const GLdouble * v
Definition: gl.h:2040

◆ HTMLStyle_put_backgroundAttachment()

static HRESULT WINAPI HTMLStyle_put_backgroundAttachment ( IHTMLStyle *  iface,
BSTR  v 
)
static

Definition at line 1077 of file htmlstyle.c.

1078 {
1080 
1081  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1082 
1084 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
static HRESULT set_style_attr(HTMLStyle *This, styleid_t sid, LPCWSTR value, DWORD flags)
Definition: htmlstyle.c:460
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
const GLdouble * v
Definition: gl.h:2040

◆ HTMLStyle_put_backgroundColor()

static HRESULT WINAPI HTMLStyle_put_backgroundColor ( IHTMLStyle *  iface,
VARIANT  v 
)
static

Definition at line 1012 of file htmlstyle.c.

1013 {
1015 
1016  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1017 
1019 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define ATTR_HEX_INT
Definition: htmlstyle.h:142
#define TRACE(s)
Definition: solgame.cpp:4
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
const GLdouble * v
Definition: gl.h:2040
HRESULT set_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *value, DWORD flags)
Definition: htmlstyle.c:447

◆ HTMLStyle_put_backgroundImage()

static HRESULT WINAPI HTMLStyle_put_backgroundImage ( IHTMLStyle *  iface,
BSTR  v 
)
static

Definition at line 1030 of file htmlstyle.c.

1031 {
1033 
1034  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1035 
1037 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
#define ATTR_FIX_URL
Definition: htmlstyle.h:140
static HRESULT set_style_attr(HTMLStyle *This, styleid_t sid, LPCWSTR value, DWORD flags)
Definition: htmlstyle.c:460
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
const GLdouble * v
Definition: gl.h:2040

◆ HTMLStyle_put_backgroundPosition()

static HRESULT WINAPI HTMLStyle_put_backgroundPosition ( IHTMLStyle *  iface,
BSTR  v 
)
static

Definition at line 1095 of file htmlstyle.c.

1096 {
1098 
1099  TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1100 
1102 }
static HTMLStyle * impl_from_IHTMLStyle(IHTMLStyle *iface)
Definition: htmlstyle.c:739
static HRESULT set_style_attr(HTMLStyle *This, styleid_t sid, LPCWSTR value, DWORD flags)
Definition: htmlstyle.c:460
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
const GLdouble * v
Definition: gl.h:2040

◆ HTMLStyle_put_backgroundPositionX()

static HRESULT WINAPI HTMLStyle_put_backgroundPositionX ( IHTMLStyle *  iface,
VARIANT  v 
)
static

Definition at line 1113 of file htmlstyle.c.

1114 {
1116  WCHAR buf[14], *pos_val;
1117  nsAString pos_str;
1118  const WCHAR *val;
1119  DWORD val_len;
1120  HRESULT hres;
1121 
1122  TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1123 
1125  if(FAILED(hres))
1126  return hres;
1127 
1128  val_len = val ? strlenW(val) : 0;
1129 
1130  nsAString_Init(&pos_str, NULL);
1132  if(SUCCEEDED(hres)) {
1133  const PRUnichar *pos, *posy;
1134  DWORD posy_len;
1135 
1136  nsAString_GetData(&pos_str, &pos);
1137  posy = strchrW(pos, ' ');
1138  if(!posy) {
1139  static const WCHAR zero_pxW[] = {' ','0','p','x',0};
1140 
1141  TRACE("no space in %s\n", debugstr_w(pos));
1142  posy = zero_pxW;
1143  }
1144 
1145  posy_len = strlenW(posy);
1146  pos_val = heap_alloc((val_len+posy_len+1)*sizeof(WCHAR));
1147  if(pos_val) {
1148  if(val_len)
1149  memcpy(pos_val, val, val_len*sizeof(WCHAR));
1150  if(posy_len)
1151  memcpy(pos_val+val_len, posy, posy_len*sizeof(WCHAR));
1152  pos_val[val_len+posy_len] = 0;
1153  }else {
1154  hres = E_OUTOFMEMORY;
1155  }
1156  }
1157  nsAString_Finish(&pos_str);
1158  if(FAILED(hres))
1159  return hres;
1160 
1161  TRACE("setting position to %s\n",