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
931bf681
Commit
931bf681
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 borderTopWidth.
parent
e44608c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
4 deletions
+29
-4
htmlstyle.c
dlls/mshtml/htmlstyle.c
+9
-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 @
931bf681
...
...
@@ -63,6 +63,8 @@ static const WCHAR attrBorderStyle[] =
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'-'
,
's'
,
't'
,
'y'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
attrBorderTopStyle
[]
=
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'-'
,
't'
,
'o'
,
'p'
,
'-'
,
's'
,
't'
,
'y'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
attrBorderTopWidth
[]
=
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'-'
,
't'
,
'o'
,
'p'
,
'-'
,
'w'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
attrBorderWidth
[]
=
{
'b'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'-'
,
'w'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
attrColor
[]
=
...
...
@@ -134,6 +136,7 @@ static const struct{
{
attrBorderRightStyle
,
DISPID_IHTMLSTYLE_BORDERRIGHTSTYLE
},
{
attrBorderStyle
,
DISPID_IHTMLSTYLE_BORDERSTYLE
},
{
attrBorderTopStyle
,
DISPID_IHTMLSTYLE_BORDERTOPSTYLE
},
{
attrBorderTopWidth
,
DISPID_IHTMLSTYLE_BORDERTOPWIDTH
},
{
attrBorderWidth
,
DISPID_IHTMLSTYLE_BORDERWIDTH
},
{
attrColor
,
DISPID_IHTMLSTYLE_COLOR
},
{
attrCursor
,
DISPID_IHTMLSTYLE_CURSOR
},
...
...
@@ -1517,15 +1520,17 @@ static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLStyle_put_borderTopWidth
(
IHTMLStyle
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXM
E
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
return
set_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_BORDER_TOP_WIDTH
,
&
v
,
0
)
;
}
static
HRESULT
WINAPI
HTMLStyle_get_borderTopWidth
(
IHTMLStyle
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_BORDER_TOP_WIDTH
,
p
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle_put_borderRightWidth
(
IHTMLStyle
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/htmlstyle.h
View file @
931bf681
...
...
@@ -49,6 +49,7 @@ typedef enum {
STYLEID_BORDER_RIGHT_STYLE
,
STYLEID_BORDER_STYLE
,
STYLEID_BORDER_TOP_STYLE
,
STYLEID_BORDER_TOP_WIDTH
,
STYLEID_BORDER_WIDTH
,
STYLEID_COLOR
,
STYLEID_CURSOR
,
...
...
dlls/mshtml/tests/dom.c
View file @
931bf681
...
...
@@ -3467,6 +3467,25 @@ static void test_default_style(IHTMLStyle *style)
ok
(
hres
==
S_OK
,
"put_backgroundPositionY failed: %08x
\n
"
,
hres
);
VariantClear
(
&
vDefault
);
/* borderTopWidth */
hres
=
IHTMLStyle_get_borderTopWidth
(
style
,
&
vDefault
);
ok
(
hres
==
S_OK
,
"get_borderTopWidth: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"10px"
);
hres
=
IHTMLStyle_put_borderTopWidth
(
style
,
v
);
ok
(
hres
==
S_OK
,
"put_borderTopWidth: %08x
\n
"
,
hres
);
VariantClear
(
&
v
);
hres
=
IHTMLStyle_get_borderTopWidth
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_borderTopWidth: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"10px"
),
"expected 10px = %s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
hres
=
IHTMLStyle_put_borderTopWidth
(
style
,
vDefault
);
ok
(
hres
==
S_OK
,
"put_borderTopWidth: %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