Commit 433027a3 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

mshtml: Implement get/put margin.

parent 522b515b
...@@ -63,6 +63,8 @@ static const WCHAR attrFontStyle[] = ...@@ -63,6 +63,8 @@ static const WCHAR attrFontStyle[] =
{'f','o','n','t','-','s','t','y','l','e',0}; {'f','o','n','t','-','s','t','y','l','e',0};
static const WCHAR attrFontWeight[] = static const WCHAR attrFontWeight[] =
{'f','o','n','t','-','w','e','i','g','h','t',0}; {'f','o','n','t','-','w','e','i','g','h','t',0};
static const WCHAR attrMargin[] =
{'m','a','r','g','i','n',0};
static const WCHAR attrMarginLeft[] = static const WCHAR attrMarginLeft[] =
{'m','a','r','g','i','n','-','l','e','f','t',0}; {'m','a','r','g','i','n','-','l','e','f','t',0};
static const WCHAR attrMarginRight[] = static const WCHAR attrMarginRight[] =
...@@ -848,15 +850,19 @@ static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v) ...@@ -848,15 +850,19 @@ static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v) static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
{ {
HTMLStyle *This = HTMLSTYLE_THIS(iface); HTMLStyle *This = HTMLSTYLE_THIS(iface);
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
return E_NOTIMPL; TRACE("(%p)->(%s)\n", This, debugstr_w(v));
return set_style_attr(This, attrMargin, v, 0);
} }
static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p) static HRESULT WINAPI HTMLStyle_get_margin(IHTMLStyle *iface, BSTR *p)
{ {
HTMLStyle *This = HTMLSTYLE_THIS(iface); HTMLStyle *This = HTMLSTYLE_THIS(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL; TRACE("(%p)->(%p)\n", This, p);
return get_style_attr(This, attrMargin, p);
} }
static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p) static HRESULT WINAPI HTMLStyle_get_marginLeft(IHTMLStyle *iface, VARIANT *p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment