mshtml: Added IHTMLStyle::get_borderRightColor implementation.
authorJacek Caban <jacek@codeweavers.com>
Tue, 9 Feb 2010 18:35:41 +0000 (19:35 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 10 Feb 2010 10:33:09 +0000 (11:33 +0100)
dlls/mshtml/htmlstyle.c
dlls/mshtml/tests/dom.c

index 3022e2b92af4f0d59f9427180b9c8ba0f385a8d5..f96bee22be29fdea7229d0cf8c35ac0def73ba21 100644 (file)
@@ -1547,8 +1547,10 @@ static HRESULT WINAPI HTMLStyle_put_borderRightColor(IHTMLStyle *iface, VARIANT
 static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT *p)
 {
     HTMLStyle *This = HTMLSTYLE_THIS(iface);
-    FIXME("(%p)->(%p)\n", This, p);
-    return E_NOTIMPL;
+
+    TRACE("(%p)->(%p)\n", This, p);
+
+    return get_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_RIGHT_COLOR, p, 0);
 }
 
 static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
index 3a008eae99b5d5cd683aed5d359a4299fd81feb1..dc37a5e3145e5a95adb13be2b520c85f5544e238 100644 (file)
@@ -4488,8 +4488,8 @@ static void test_default_style(IHTMLStyle *style)
      */
     V_BSTR(&v) = NULL;
     hres = IHTMLStyle_get_borderRightColor(style, &v);
-    todo_wine ok(hres == S_OK, "get_borderRightColor failed: %08x\n", hres);
-    todo_wine ok(!strcmp_wa(V_BSTR(&v), "red"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v)));
+    ok(hres == S_OK, "get_borderRightColor failed: %08x\n", hres);
+    ok(!strcmp_wa(V_BSTR(&v), "red"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v)));
     VariantClear(&v);
 
     V_BSTR(&v) = NULL;