Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
wine
wine-winehq
Commits
8b998a7d
Commit
8b998a7d
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 in IE9+ mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
889ccb88
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
8 deletions
+6
-8
htmlcurstyle.c
dlls/mshtml/htmlcurstyle.c
+1
-1
htmlstyle.c
dlls/mshtml/htmlstyle.c
+4
-4
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 @
8b998a7d
...
...
@@ -48,7 +48,7 @@ struct HTMLCurrentStyle {
static
inline
HRESULT
get_current_style_property
(
HTMLCurrentStyle
*
current_style
,
styleid_t
sid
,
BSTR
*
p
)
{
return
get_nsstyle_property
(
current_style
->
nsstyle
,
sid
,
p
);
return
get_nsstyle_property
(
current_style
->
nsstyle
,
sid
,
COMPAT_MODE_QUIRKS
,
p
);
}
static
inline
HRESULT
get_current_style_property_var
(
HTMLCurrentStyle
*
This
,
styleid_t
sid
,
VARIANT
*
v
)
...
...
dlls/mshtml/htmlstyle.c
View file @
8b998a7d
...
...
@@ -667,7 +667,7 @@ static HRESULT nsstyle_to_bstr(const WCHAR *val, DWORD flags, BSTR *p)
return
S_OK
;
}
HRESULT
get_nsstyle_property
(
nsIDOMCSSStyleDeclaration
*
nsstyle
,
styleid_t
sid
,
BSTR
*
p
)
HRESULT
get_nsstyle_property
(
nsIDOMCSSStyleDeclaration
*
nsstyle
,
styleid_t
sid
,
compat_mode_t
compat_mode
,
BSTR
*
p
)
{
nsAString
str_value
;
const
PRUnichar
*
value
;
...
...
@@ -678,7 +678,7 @@ HRESULT get_nsstyle_property(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid,
get_nsstyle_attr_nsval
(
nsstyle
,
sid
,
&
str_value
);
nsAString_GetData
(
&
str_value
,
&
value
);
hres
=
nsstyle_to_bstr
(
value
,
style_tbl
[
sid
].
flags
,
p
);
hres
=
nsstyle_to_bstr
(
value
,
compat_mode
<
COMPAT_MODE_IE9
?
style_tbl
[
sid
].
flags
:
0
,
p
);
nsAString_Finish
(
&
str_value
);
TRACE
(
"%s -> %s
\n
"
,
debugstr_w
(
style_tbl
[
sid
].
name
),
debugstr_w
(
*
p
));
...
...
@@ -738,7 +738,7 @@ HRESULT get_nsstyle_property_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t s
static
inline
HRESULT
get_style_property
(
HTMLStyle
*
This
,
styleid_t
sid
,
BSTR
*
p
)
{
return
get_nsstyle_property
(
This
->
nsstyle
,
sid
,
p
);
return
get_nsstyle_property
(
This
->
nsstyle
,
sid
,
dispex_compat_mode
(
&
This
->
dispex
),
p
);
}
static
inline
HRESULT
get_style_property_var
(
HTMLStyle
*
This
,
styleid_t
sid
,
VARIANT
*
v
)
...
...
@@ -4796,7 +4796,7 @@ HRESULT get_elem_style(HTMLElement *elem, styleid_t styleid, BSTR *ret)
if
(
FAILED
(
hres
))
return
hres
;
hres
=
get_nsstyle_property
(
style
,
styleid
,
ret
);
hres
=
get_nsstyle_property
(
style
,
styleid
,
COMPAT_MODE_IE11
,
ret
);
nsIDOMCSSStyleDeclaration_Release
(
style
);
return
hres
;
}
...
...
dlls/mshtml/htmlstyle.h
View file @
8b998a7d
...
...
@@ -123,7 +123,7 @@ typedef enum {
HRESULT
HTMLStyle_Create
(
HTMLElement
*
,
HTMLStyle
**
)
DECLSPEC_HIDDEN
;
HRESULT
get_nsstyle_property
(
nsIDOMCSSStyleDeclaration
*
,
styleid_t
,
BSTR
*
)
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_elem_style
(
HTMLElement
*
,
styleid_t
,
BSTR
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/tests/style.c
View file @
8b998a7d
...
...
@@ -704,7 +704,6 @@ static void test_style6(IHTMLStyle6 *style)
if
(
compat_mode
<
COMPAT_IE9
)
ok
(
str
&&
!*
str
,
"outline = %s
\n
"
,
wine_dbgstr_w
(
str
));
else
todo_wine
ok
(
!
str
,
"outline = %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
...
...
@@ -2524,7 +2523,6 @@ static void test_body_style(IHTMLStyle *style)
hres
=
IHTMLStyle_get_clip
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_clip failed: %08x
\n
"
,
hres
);
todo_wine_if
(
compat_mode
>=
COMPAT_IE9
)
ok
(
!
strcmp_wa
(
str
,
compat_mode
<
COMPAT_IE9
?
"rect(0px 1px 500px 505px)"
:
"rect(0px, 1px, 500px, 505px)"
),
"clip = %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
...
...
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