Alistair Leslie-Hughes : mshtml: Implement get/put margin.
Alexandre Julliard
julliard at winehq.org
Thu Sep 11 08:01:07 CDT 2008
Module: wine
Branch: master
Commit: 433027a3773e0c6e87ca517bd74a70d2c4461bcd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=433027a3773e0c6e87ca517bd74a70d2c4461bcd
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu Sep 11 09:46:32 2008 +1000
mshtml: Implement get/put margin.
---
dlls/mshtml/htmlstyle.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
index b4c48d4..669df72 100644
--- a/dlls/mshtml/htmlstyle.c
+++ b/dlls/mshtml/htmlstyle.c
@@ -63,6 +63,8 @@ static const WCHAR attrFontStyle[] =
{'f','o','n','t','-','s','t','y','l','e',0};
static const WCHAR attrFontWeight[] =
{'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[] =
{'m','a','r','g','i','n','-','l','e','f','t',0};
static const WCHAR attrMarginRight[] =
@@ -848,15 +850,19 @@ static HRESULT WINAPI HTMLStyle_put_marginLeft(IHTMLStyle *iface, VARIANT v)
static HRESULT WINAPI HTMLStyle_put_margin(IHTMLStyle *iface, BSTR v)
{
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)
{
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)
More information about the wine-cvs
mailing list