Jacek Caban : mshtml: Added IHTMLCSSStyleDeclaration:: removeProperty implementation.
Alexandre Julliard
julliard at winehq.org
Fri Sep 7 16:49:26 CDT 2018
Module: wine
Branch: master
Commit: 9269cda82bb0105e276441ed20695d8de0b60576
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9269cda82bb0105e276441ed20695d8de0b60576
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Sep 7 14:50:56 2018 +0200
mshtml: Added IHTMLCSSStyleDeclaration::removeProperty implementation.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/htmlstyle.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
index d6ea37d..8cfc6e1 100644
--- a/dlls/mshtml/htmlstyle.c
+++ b/dlls/mshtml/htmlstyle.c
@@ -4766,8 +4766,18 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration_getPropertyPriority(IHTMLCSSStyleD
static HRESULT WINAPI HTMLCSSStyleDeclaration_removeProperty(IHTMLCSSStyleDeclaration *iface, BSTR bstrPropertyName, BSTR *pbstrPropertyValue)
{
HTMLStyle *This = impl_from_IHTMLCSSStyleDeclaration(iface);
- FIXME("(%p)->(%s %p)\n", This, debugstr_w(bstrPropertyName), pbstrPropertyValue);
- return E_NOTIMPL;
+ const style_tbl_entry_t *style_entry;
+ nsAString name_str, ret_str;
+ nsresult nsres;
+
+ TRACE("(%p)->(%s %p)\n", This, debugstr_w(bstrPropertyName), pbstrPropertyValue);
+
+ style_entry = lookup_style_tbl(bstrPropertyName);
+ nsAString_InitDepend(&name_str, style_entry ? style_entry->name : bstrPropertyName);
+ nsAString_Init(&ret_str, NULL);
+ nsres = nsIDOMCSSStyleDeclaration_RemoveProperty(This->nsstyle, &name_str, &ret_str);
+ nsAString_Finish(&name_str);
+ return return_nsstr(nsres, &ret_str, pbstrPropertyValue);
}
static HRESULT WINAPI HTMLCSSStyleDeclaration_setProperty(IHTMLCSSStyleDeclaration *iface, BSTR bstrPropertyName, VARIANT *pvarPropertyValue, VARIANT *pvarPropertyPriority)
More information about the wine-cvs
mailing list