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
957a1f02
Commit
957a1f02
authored
Feb 07, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Add style.borderCollapse property implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
83af47e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
8 deletions
+36
-8
htmlstyle.c
dlls/mshtml/htmlstyle.c
+19
-8
htmlstyle.h
dlls/mshtml/htmlstyle.h
+1
-0
style.c
dlls/mshtml/tests/style.c
+16
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
957a1f02
...
...
@@ -63,6 +63,8 @@ static const WCHAR border_bottom_styleW[] =
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'-'
,
'b'
,
'o'
,
't'
,
't'
,
'o'
,
'm'
,
'-'
,
's'
,
't'
,
'y'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
border_bottom_widthW
[]
=
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'-'
,
'b'
,
'o'
,
't'
,
't'
,
'o'
,
'm'
,
'-'
,
'w'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
border_collapseW
[]
=
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'-'
,
'c'
,
'o'
,
'l'
,
'l'
,
'a'
,
'p'
,
's'
,
'e'
,
0
};
static
const
WCHAR
border_colorW
[]
=
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'-'
,
'c'
,
'o'
,
'l'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
border_leftW
[]
=
...
...
@@ -416,6 +418,11 @@ static const style_tbl_entry_t style_tbl[] = {
ATTR_FIX_PX
},
{
border_collapseW
,
DISPID_IHTMLCSSSTYLEDECLARATION_BORDERCOLLAPSE
,
DISPID_IHTMLSTYLE2_BORDERCOLLAPSE
},
{
border_colorW
,
DISPID_IHTMLCSSSTYLEDECLARATION_BORDERCOLOR
,
DISPID_IHTMLSTYLE_BORDERCOLOR
...
...
@@ -3629,15 +3636,19 @@ static HRESULT WINAPI HTMLStyle2_get_tableLayout(IHTMLStyle2 *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLStyle2_put_borderCollapse
(
IHTMLStyle2
*
iface
,
BSTR
v
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
set_style_property
(
This
,
STYLEID_BORDER_COLLAPSE
,
v
);
}
static
HRESULT
WINAPI
HTMLStyle2_get_borderCollapse
(
IHTMLStyle2
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_style_property
(
This
,
STYLEID_BORDER_COLLAPSE
,
p
);
}
static
HRESULT
WINAPI
HTMLStyle2_put_direction
(
IHTMLStyle2
*
iface
,
BSTR
v
)
...
...
@@ -6258,15 +6269,15 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration_get_tableLayout(IHTMLCSSStyleDecla
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration_put_borderCollapse
(
IHTMLCSSStyleDeclaration
*
iface
,
BSTR
v
)
{
HTMLStyle
*
This
=
impl_from_IHTMLCSSStyleDeclaration
(
iface
);
FIXM
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
set_style_property
(
This
,
STYLEID_BORDER_COLLAPSE
,
v
)
;
}
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration_get_borderCollapse
(
IHTMLCSSStyleDeclaration
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
impl_from_IHTMLCSSStyleDeclaration
(
iface
);
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_style_property
(
This
,
STYLEID_BORDER_COLLAPSE
,
p
)
;
}
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration_put_direction
(
IHTMLCSSStyleDeclaration
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/htmlstyle.h
View file @
957a1f02
...
...
@@ -49,6 +49,7 @@ typedef enum {
STYLEID_BORDER_BOTTOM_COLOR
,
STYLEID_BORDER_BOTTOM_STYLE
,
STYLEID_BORDER_BOTTOM_WIDTH
,
STYLEID_BORDER_COLLAPSE
,
STYLEID_BORDER_COLOR
,
STYLEID_BORDER_LEFT
,
STYLEID_BORDER_LEFT_COLOR
,
...
...
dlls/mshtml/tests/style.c
View file @
957a1f02
...
...
@@ -516,6 +516,22 @@ static void test_style2(IHTMLStyle2 *style2)
ok
(
hres
==
S_OK
,
"get_tableLayout failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"fixed"
),
"tableLayout = %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
/* borderCollapse */
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLStyle2_get_borderCollapse
(
style2
,
&
str
);
ok
(
hres
==
S_OK
,
"get_borderCollapse failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"borderCollapse = %s
\n
"
,
wine_dbgstr_w
(
str
));
str
=
a2bstr
(
"separate"
);
hres
=
IHTMLStyle2_put_borderCollapse
(
style2
,
str
);
ok
(
hres
==
S_OK
,
"put_borderCollapse failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
hres
=
IHTMLStyle2_get_borderCollapse
(
style2
,
&
str
);
ok
(
hres
==
S_OK
,
"get_borderCollapse failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"separate"
),
"borderCollapse = %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
}
static
void
test_style3
(
IHTMLStyle3
*
style3
,
IHTMLCSSStyleDeclaration
*
css_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