Jacek Caban : mshtml: Use dispex_compat_mode in update_filter.

Alexandre Julliard julliard at winehq.org
Wed Sep 12 16:40:34 CDT 2018


Module: wine
Branch: master
Commit: d35e6feafa39ddbad097fe138f09350c19b7c5e1
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d35e6feafa39ddbad097fe138f09350c19b7c5e1

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Sep 12 21:15:42 2018 +0200

mshtml: Use dispex_compat_mode in update_filter.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/htmlstyle.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
index 282dd58..0c95951 100644
--- a/dlls/mshtml/htmlstyle.c
+++ b/dlls/mshtml/htmlstyle.c
@@ -449,11 +449,6 @@ static const style_tbl_entry_t *lookup_style_tbl(const WCHAR *name)
     return NULL;
 }
 
-static inline compat_mode_t get_style_compat_mode(HTMLStyle *style)
-{
-    return style->elem && style->elem->node.doc ? style->elem->node.doc->document_mode : COMPAT_MODE_QUIRKS;
-}
-
 static LPWSTR fix_px_value(LPCWSTR val)
 {
     LPCWSTR ptr = val;
@@ -2704,7 +2699,7 @@ static void update_filter(HTMLStyle *This)
 
     static const WCHAR alphaW[] = {'a','l','p','h','a'};
 
-    if(get_style_compat_mode(This) >= COMPAT_MODE_IE10)
+    if(dispex_compat_mode(&This->dispex) >= COMPAT_MODE_IE10)
         return;
 
     ptr = This->elem->filter;




More information about the wine-cvs mailing list