Jacek Caban : mshtml: Use nsIDOMElement instead of nsIDOMHTMLElement in get_font_size.
Alexandre Julliard
julliard at winehq.org
Mon Feb 12 16:10:36 CST 2018
Module: wine
Branch: master
Commit: 339a5156f75a95d71809b390db521c615a316b0a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=339a5156f75a95d71809b390db521c615a316b0a
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Feb 12 01:28:44 2018 +0100
mshtml: Use nsIDOMElement instead of nsIDOMHTMLElement in get_font_size.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/editor.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/editor.c b/dlls/mshtml/editor.c
index 37cdcee..0db8821 100644
--- a/dlls/mshtml/editor.c
+++ b/dlls/mshtml/editor.c
@@ -262,7 +262,7 @@ static void remove_child_attr(nsIDOMElement *elem, LPCWSTR tag, nsAString *attr_
static void get_font_size(HTMLDocument *This, WCHAR *ret)
{
nsISelection *nsselection = get_ns_selection(This);
- nsIDOMHTMLElement *elem = NULL;
+ nsIDOMElement *elem = NULL;
nsIDOMNode *node = NULL, *tmp_node;
nsAString tag_str;
LPCWSTR tag;
@@ -283,10 +283,10 @@ static void get_font_size(HTMLDocument *This, WCHAR *ret)
break;
if(node_type == ELEMENT_NODE) {
- nsIDOMNode_QueryInterface(node, &IID_nsIDOMHTMLElement, (void**)&elem);
+ nsIDOMNode_QueryInterface(node, &IID_nsIDOMElement, (void**)&elem);
nsAString_Init(&tag_str, NULL);
- nsIDOMHTMLElement_GetTagName(elem, &tag_str);
+ nsIDOMElement_GetTagName(elem, &tag_str);
nsAString_GetData(&tag_str, &tag);
if(!strcmpiW(tag, fontW)) {
@@ -305,7 +305,7 @@ static void get_font_size(HTMLDocument *This, WCHAR *ret)
}
nsAString_Finish(&tag_str);
- nsIDOMHTMLElement_Release(elem);
+ nsIDOMElement_Release(elem);
}
if(*ret)
More information about the wine-cvs
mailing list