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
6655d3f7
Commit
6655d3f7
authored
Mar 05, 2009
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Mar 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLStyle get/put borderBottomWidth.
parent
e266672c
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
+8
-4
htmlstyle.h
dlls/mshtml/htmlstyle.h
+1
-0
dom.c
dlls/mshtml/tests/dom.c
+19
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
6655d3f7
...
...
@@ -51,6 +51,8 @@ static const WCHAR attrBorder[] =
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
attrBorderBottomStyle
[]
=
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'-'
,
'b'
,
'o'
,
't'
,
't'
,
'o'
,
'm'
,
'-'
,
's'
,
't'
,
'y'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
attrBorderBottomWidth
[]
=
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'-'
,
'b'
,
'o'
,
't'
,
't'
,
'o'
,
'm'
,
'-'
,
'w'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
attrBorderColor
[]
=
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'-'
,
'c'
,
'o'
,
'l'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
attrBorderLeft
[]
=
...
...
@@ -132,6 +134,7 @@ static const struct{
{
attrBackgroundRepeat
,
DISPID_IHTMLSTYLE_BACKGROUNDREPEAT
},
{
attrBorder
,
DISPID_IHTMLSTYLE_BORDER
},
{
attrBorderBottomStyle
,
DISPID_IHTMLSTYLE_BORDERBOTTOMSTYLE
},
{
attrBorderBottomWidth
,
DISPID_IHTMLSTYLE_BORDERBOTTOMWIDTH
},
{
attrBorderColor
,
DISPID_IHTMLSTYLE_BORDERCOLOR
},
{
attrBorderLeft
,
DISPID_IHTMLSTYLE_BORDERLEFT
},
{
attrBorderLeftStyle
,
DISPID_IHTMLSTYLE_BORDERLEFTSTYLE
},
...
...
@@ -1553,15 +1556,16 @@ static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT
static
HRESULT
WINAPI
HTMLStyle_put_borderBottomWidth
(
IHTMLStyle
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
return
set_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_BORDER_BOTTOM_WIDTH
,
&
v
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle_get_borderBottomWidth
(
IHTMLStyle
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_BORDER_BOTTOM_WIDTH
,
p
,
0
)
;
}
static
HRESULT
WINAPI
HTMLStyle_put_borderLeftWidth
(
IHTMLStyle
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/htmlstyle.h
View file @
6655d3f7
...
...
@@ -43,6 +43,7 @@ typedef enum {
STYLEID_BACKGROUND_REPEAT
,
STYLEID_BORDER
,
STYLEID_BORDER_BOTTOM_STYLE
,
STYLEID_BORDER_BOTTOM_WIDTH
,
STYLEID_BORDER_COLOR
,
STYLEID_BORDER_LEFT
,
STYLEID_BORDER_LEFT_STYLE
,
...
...
dlls/mshtml/tests/dom.c
View file @
6655d3f7
...
...
@@ -3505,6 +3505,25 @@ static void test_default_style(IHTMLStyle *style)
ok
(
hres
==
S_OK
,
"put_borderRightWidth: %08x
\n
"
,
hres
);
VariantClear
(
&
vDefault
);
/* borderBottomWidth */
hres
=
IHTMLStyle_get_borderBottomWidth
(
style
,
&
vDefault
);
ok
(
hres
==
S_OK
,
"get_borderBottomWidth: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"10"
);
hres
=
IHTMLStyle_put_borderBottomWidth
(
style
,
v
);
ok
(
hres
==
S_OK
,
"put_borderBottomWidth: %08x
\n
"
,
hres
);
VariantClear
(
&
v
);
hres
=
IHTMLStyle_get_borderBottomWidth
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_borderBottomWidth: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"10px"
),
"expected 10px = %s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
hres
=
IHTMLStyle_put_borderBottomWidth
(
style
,
vDefault
);
ok
(
hres
==
S_OK
,
"put_borderBottomWidth: %08x
\n
"
,
hres
);
VariantClear
(
&
vDefault
);
hres
=
IHTMLStyle_QueryInterface
(
style
,
&
IID_IHTMLStyle2
,
(
void
**
)
&
style2
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLStyle2 iface: %08x
\n
"
,
hres
);
if
(
SUCCEEDED
(
hres
))
{
...
...
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