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
edb4eca7
Commit
edb4eca7
authored
Mar 26, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Pass style as CSSStyle to current style property getters.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
68d0052b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
htmlcurstyle.c
dlls/mshtml/htmlcurstyle.c
+2
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+4
-4
htmlstyle.h
dlls/mshtml/htmlstyle.h
+2
-2
No files found.
dlls/mshtml/htmlcurstyle.c
View file @
edb4eca7
...
@@ -45,12 +45,12 @@ struct HTMLCurrentStyle {
...
@@ -45,12 +45,12 @@ struct HTMLCurrentStyle {
static
inline
HRESULT
get_current_style_property
(
HTMLCurrentStyle
*
current_style
,
styleid_t
sid
,
BSTR
*
p
)
static
inline
HRESULT
get_current_style_property
(
HTMLCurrentStyle
*
current_style
,
styleid_t
sid
,
BSTR
*
p
)
{
{
return
get_
nsstyle_property
(
current_style
->
css_style
.
nsstyle
,
sid
,
COMPAT_MODE_QUIRKS
,
p
);
return
get_
style_property
(
&
current_style
->
css_style
,
sid
,
p
);
}
}
static
inline
HRESULT
get_current_style_property_var
(
HTMLCurrentStyle
*
This
,
styleid_t
sid
,
VARIANT
*
v
)
static
inline
HRESULT
get_current_style_property_var
(
HTMLCurrentStyle
*
This
,
styleid_t
sid
,
VARIANT
*
v
)
{
{
return
get_
nsstyle_property_var
(
This
->
css_style
.
nsstyle
,
sid
,
COMPAT_MODE_QUIRKS
,
v
);
return
get_
style_property_var
(
&
This
->
css_style
,
sid
,
v
);
}
}
static
inline
HTMLCurrentStyle
*
impl_from_IHTMLCurrentStyle
(
IHTMLCurrentStyle
*
iface
)
static
inline
HTMLCurrentStyle
*
impl_from_IHTMLCurrentStyle
(
IHTMLCurrentStyle
*
iface
)
...
...
dlls/mshtml/htmlstyle.c
View file @
edb4eca7
...
@@ -1077,7 +1077,7 @@ static HRESULT nsstyle_to_bstr(const WCHAR *val, DWORD flags, BSTR *p)
...
@@ -1077,7 +1077,7 @@ static HRESULT nsstyle_to_bstr(const WCHAR *val, DWORD flags, BSTR *p)
return
S_OK
;
return
S_OK
;
}
}
HRESULT
get_nsstyle_property
(
nsIDOMCSSStyleDeclaration
*
nsstyle
,
styleid_t
sid
,
compat_mode_t
compat_mode
,
BSTR
*
p
)
static
HRESULT
get_nsstyle_property
(
nsIDOMCSSStyleDeclaration
*
nsstyle
,
styleid_t
sid
,
compat_mode_t
compat_mode
,
BSTR
*
p
)
{
{
nsAString
str_value
;
nsAString
str_value
;
const
PRUnichar
*
value
;
const
PRUnichar
*
value
;
...
@@ -1095,7 +1095,7 @@ HRESULT get_nsstyle_property(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid,
...
@@ -1095,7 +1095,7 @@ HRESULT get_nsstyle_property(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid,
return
hres
;
return
hres
;
}
}
HRESULT
get_nsstyle_property_var
(
nsIDOMCSSStyleDeclaration
*
nsstyle
,
styleid_t
sid
,
compat_mode_t
compat_mode
,
VARIANT
*
p
)
static
HRESULT
get_nsstyle_property_var
(
nsIDOMCSSStyleDeclaration
*
nsstyle
,
styleid_t
sid
,
compat_mode_t
compat_mode
,
VARIANT
*
p
)
{
{
unsigned
flags
=
style_tbl
[
sid
].
flags
;
unsigned
flags
=
style_tbl
[
sid
].
flags
;
nsAString
str_value
;
nsAString
str_value
;
...
@@ -1145,12 +1145,12 @@ HRESULT get_nsstyle_property_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t s
...
@@ -1145,12 +1145,12 @@ HRESULT get_nsstyle_property_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t s
return
S_OK
;
return
S_OK
;
}
}
static
inline
HRESULT
get_style_property
(
CSSStyle
*
style
,
styleid_t
sid
,
BSTR
*
p
)
HRESULT
get_style_property
(
CSSStyle
*
style
,
styleid_t
sid
,
BSTR
*
p
)
{
{
return
get_nsstyle_property
(
style
->
nsstyle
,
sid
,
dispex_compat_mode
(
&
style
->
dispex
),
p
);
return
get_nsstyle_property
(
style
->
nsstyle
,
sid
,
dispex_compat_mode
(
&
style
->
dispex
),
p
);
}
}
static
inline
HRESULT
get_style_property_var
(
CSSStyle
*
style
,
styleid_t
sid
,
VARIANT
*
v
)
HRESULT
get_style_property_var
(
CSSStyle
*
style
,
styleid_t
sid
,
VARIANT
*
v
)
{
{
return
get_nsstyle_property_var
(
style
->
nsstyle
,
sid
,
dispex_compat_mode
(
&
style
->
dispex
),
v
);
return
get_nsstyle_property_var
(
style
->
nsstyle
,
sid
,
dispex_compat_mode
(
&
style
->
dispex
),
v
);
}
}
...
...
dlls/mshtml/htmlstyle.h
View file @
edb4eca7
...
@@ -140,8 +140,8 @@ HRESULT HTMLStyle_Create(HTMLElement*,HTMLStyle**) DECLSPEC_HIDDEN;
...
@@ -140,8 +140,8 @@ HRESULT HTMLStyle_Create(HTMLElement*,HTMLStyle**) DECLSPEC_HIDDEN;
void
init_css_style
(
CSSStyle
*
,
nsIDOMCSSStyleDeclaration
*
,
style_qi_t
,
void
init_css_style
(
CSSStyle
*
,
nsIDOMCSSStyleDeclaration
*
,
style_qi_t
,
dispex_static_data_t
*
,
compat_mode_t
)
DECLSPEC_HIDDEN
;
dispex_static_data_t
*
,
compat_mode_t
)
DECLSPEC_HIDDEN
;
HRESULT
get_
nsstyle_property
(
nsIDOMCSSStyleDeclaration
*
,
styleid_t
,
compat_mode
_t
,
BSTR
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_
style_property
(
CSSStyle
*
,
styleid
_t
,
BSTR
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_
nsstyle_property_var
(
nsIDOMCSSStyleDeclaration
*
,
styleid_t
,
compat_mode
_t
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_
style_property_var
(
CSSStyle
*
,
styleid
_t
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_elem_style
(
HTMLElement
*
,
styleid_t
,
BSTR
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_elem_style
(
HTMLElement
*
,
styleid_t
,
BSTR
*
)
DECLSPEC_HIDDEN
;
HRESULT
set_elem_style
(
HTMLElement
*
,
styleid_t
,
const
WCHAR
*
)
DECLSPEC_HIDDEN
;
HRESULT
set_elem_style
(
HTMLElement
*
,
styleid_t
,
const
WCHAR
*
)
DECLSPEC_HIDDEN
;
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