Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3fc74752
Commit
3fc74752
authored
Jun 10, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Add IHTMLCSSStyleDeclaration2::perspective implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
796f34e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
htmlstyle.c
dlls/mshtml/htmlstyle.c
+9
-4
htmlstyle.h
dlls/mshtml/htmlstyle.h
+1
-0
style.c
dlls/mshtml/tests/style.c
+18
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
3fc74752
...
...
@@ -813,6 +813,11 @@ static const style_tbl_entry_t style_tbl[] = {
DISPID_A_PAGEBREAKBEFORE
},
{
L"perspective"
,
DISPID_IHTMLCSSSTYLEDECLARATION2_PERSPECTIVE
,
DISPID_UNKNOWN
},
{
positionW
,
DISPID_IHTMLCSSSTYLEDECLARATION_POSITION
,
DISPID_A_POSITION
...
...
@@ -9709,15 +9714,15 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration2_get_backfaceVisibility(IHTMLCSSSt
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration2_put_perspective
(
IHTMLCSSStyleDeclaration2
*
iface
,
VARIANT
v
)
{
CSSStyle
*
This
=
impl_from_IHTMLCSSStyleDeclaration2
(
iface
);
FIXM
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_style_property_var
(
This
,
STYLEID_PERSPECTIVE
,
&
v
)
;
}
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration2_get_perspective
(
IHTMLCSSStyleDeclaration2
*
iface
,
VARIANT
*
p
)
{
CSSStyle
*
This
=
impl_from_IHTMLCSSStyleDeclaration2
(
iface
);
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_style_property_var
(
This
,
STYLEID_PERSPECTIVE
,
p
)
;
}
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration2_put_perspectiveOrigin
(
IHTMLCSSStyleDeclaration2
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/htmlstyle.h
View file @
3fc74752
...
...
@@ -128,6 +128,7 @@ typedef enum {
STYLEID_PADDING_TOP
,
STYLEID_PAGE_BREAK_AFTER
,
STYLEID_PAGE_BREAK_BEFORE
,
STYLEID_PERSPECTIVE
,
STYLEID_POSITION
,
STYLEID_RIGHT
,
STYLEID_TABLE_LAYOUT
,
...
...
dlls/mshtml/tests/style.c
View file @
3fc74752
...
...
@@ -1088,6 +1088,24 @@ static void test_css_style_declaration2(IHTMLCSSStyleDeclaration2 *css_style)
hres
=
IHTMLCSSStyleDeclaration2_get_columnRule
(
css_style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_columnRule failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"columnRule = %s
\n
"
,
wine_dbgstr_w
(
str
));
V_VT
(
&
v
)
=
VT_ERROR
;
hres
=
IHTMLCSSStyleDeclaration2_get_perspective
(
css_style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_perspective failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
&&
!
V_BSTR
(
&
v
),
"perspective = %s
\n
"
,
wine_dbgstr_variant
(
&
v
));
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
SysAllocString
(
L"100px"
);
hres
=
IHTMLCSSStyleDeclaration2_put_perspective
(
css_style
,
v
);
ok
(
hres
==
S_OK
,
"put_perspective failed: %08x
\n
"
,
hres
);
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_ERROR
;
hres
=
IHTMLCSSStyleDeclaration2_get_perspective
(
css_style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_perspective failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
&&
V_BSTR
(
&
v
)
&&
!
lstrcmpW
(
V_BSTR
(
&
v
),
L"100px"
),
"perspective = %s
\n
"
,
wine_dbgstr_variant
(
&
v
));
VariantClear
(
&
v
);
}
static
void
test_body_style
(
IHTMLStyle
*
style
)
...
...
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