Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aleksandr Isakov
wine-fonts
Commits
869b4477
Commit
869b4477
authored
Aug 29, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Skip fixups in get_nsstyle_property_var in IE9+ mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8b998a7d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
10 deletions
+7
-10
htmlcurstyle.c
dlls/mshtml/htmlcurstyle.c
+1
-1
htmlstyle.c
dlls/mshtml/htmlstyle.c
+5
-6
htmlstyle.h
dlls/mshtml/htmlstyle.h
+1
-1
style.c
dlls/mshtml/tests/style.c
+0
-2
No files found.
dlls/mshtml/htmlcurstyle.c
View file @
869b4477
...
...
@@ -53,7 +53,7 @@ static inline HRESULT get_current_style_property(HTMLCurrentStyle *current_style
static
inline
HRESULT
get_current_style_property_var
(
HTMLCurrentStyle
*
This
,
styleid_t
sid
,
VARIANT
*
v
)
{
return
get_nsstyle_property_var
(
This
->
nsstyle
,
sid
,
v
);
return
get_nsstyle_property_var
(
This
->
nsstyle
,
sid
,
COMPAT_MODE_QUIRKS
,
v
);
}
static
inline
HTMLCurrentStyle
*
impl_from_IHTMLCurrentStyle
(
IHTMLCurrentStyle
*
iface
)
...
...
dlls/mshtml/htmlstyle.c
View file @
869b4477
...
...
@@ -685,22 +685,21 @@ HRESULT get_nsstyle_property(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid,
return
hres
;
}
HRESULT
get_nsstyle_property_var
(
nsIDOMCSSStyleDeclaration
*
nsstyle
,
styleid_t
sid
,
VARIANT
*
p
)
HRESULT
get_nsstyle_property_var
(
nsIDOMCSSStyleDeclaration
*
nsstyle
,
styleid_t
sid
,
compat_mode_t
compat_mode
,
VARIANT
*
p
)
{
unsigned
flags
=
style_tbl
[
sid
].
flags
;
nsAString
str_value
;
const
PRUnichar
*
value
;
BOOL
set
=
FALSE
;
unsigned
flags
;
HRESULT
hres
=
S_OK
;
flags
=
style_tbl
[
sid
].
flags
;
nsAString_Init
(
&
str_value
,
NULL
);
get_nsstyle_attr_nsval
(
nsstyle
,
sid
,
&
str_value
);
nsAString_GetData
(
&
str_value
,
&
value
);
if
(
flags
&
ATTR_STR_TO_INT
)
{
if
(
(
flags
&
ATTR_STR_TO_INT
)
&&
(
*
value
||
compat_mode
<
COMPAT_MODE_IE9
)
)
{
const
PRUnichar
*
ptr
=
value
;
BOOL
neg
=
FALSE
;
INT
i
=
0
;
...
...
@@ -723,7 +722,7 @@ HRESULT get_nsstyle_property_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t s
if
(
!
set
)
{
BSTR
str
;
hres
=
nsstyle_to_bstr
(
value
,
flags
,
&
str
);
hres
=
nsstyle_to_bstr
(
value
,
compat_mode
<
COMPAT_MODE_IE9
?
flags
:
0
,
&
str
);
if
(
SUCCEEDED
(
hres
))
{
V_VT
(
p
)
=
VT_BSTR
;
V_BSTR
(
p
)
=
str
;
...
...
@@ -743,7 +742,7 @@ static inline HRESULT get_style_property(HTMLStyle *This, styleid_t sid, BSTR *p
static
inline
HRESULT
get_style_property_var
(
HTMLStyle
*
This
,
styleid_t
sid
,
VARIANT
*
v
)
{
return
get_nsstyle_property_var
(
This
->
nsstyle
,
sid
,
v
);
return
get_nsstyle_property_var
(
This
->
nsstyle
,
sid
,
dispex_compat_mode
(
&
This
->
dispex
),
v
);
}
static
HRESULT
check_style_attr_value
(
HTMLStyle
*
This
,
styleid_t
sid
,
LPCWSTR
exval
,
VARIANT_BOOL
*
p
)
...
...
dlls/mshtml/htmlstyle.h
View file @
869b4477
...
...
@@ -124,7 +124,7 @@ typedef enum {
HRESULT
HTMLStyle_Create
(
HTMLElement
*
,
HTMLStyle
**
)
DECLSPEC_HIDDEN
;
HRESULT
get_nsstyle_property
(
nsIDOMCSSStyleDeclaration
*
,
styleid_t
,
compat_mode_t
,
BSTR
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_nsstyle_property_var
(
nsIDOMCSSStyleDeclaration
*
,
styleid_t
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_nsstyle_property_var
(
nsIDOMCSSStyleDeclaration
*
,
styleid_t
,
compat_mode_t
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_elem_style
(
HTMLElement
*
,
styleid_t
,
BSTR
*
)
DECLSPEC_HIDDEN
;
HRESULT
set_elem_style
(
HTMLElement
*
,
styleid_t
,
const
WCHAR
*
)
DECLSPEC_HIDDEN
;
dlls/mshtml/tests/style.c
View file @
869b4477
...
...
@@ -1715,9 +1715,7 @@ static void test_body_style(IHTMLStyle *style)
ok
(
V_VT
(
&
v
)
==
VT_I4
,
"V_VT(v)=%d
\n
"
,
V_VT
(
&
v
));
ok
(
!
V_I4
(
&
v
),
"V_I4(v) != 0
\n
"
);
}
else
{
todo_wine
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(v)=%d
\n
"
,
V_VT
(
&
v
));
if
(
V_VT
(
&
v
)
==
VT_BSTR
)
todo_wine
ok
(
!
V_BSTR
(
&
v
),
"zIndex = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
}
VariantClear
(
&
v
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment