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
6cf4060a
Commit
6cf4060a
authored
Oct 13, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLStyle::put_top(VT_NULL) implementation.
parent
7c8cdd51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
9 deletions
+30
-9
htmlstyle.c
dlls/mshtml/htmlstyle.c
+19
-9
dom.c
dlls/mshtml/tests/dom.c
+11
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
6cf4060a
...
...
@@ -221,6 +221,24 @@ HRESULT set_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, LPCW
return
S_OK
;
}
static
HRESULT
set_nsstyle_attr_var
(
nsIDOMCSSStyleDeclaration
*
nsstyle
,
styleid_t
sid
,
VARIANT
*
value
,
DWORD
flags
)
{
switch
(
V_VT
(
value
))
{
case
VT_NULL
:
return
set_nsstyle_attr
(
nsstyle
,
sid
,
emptyW
,
flags
);
case
VT_BSTR
:
return
set_nsstyle_attr
(
nsstyle
,
sid
,
V_BSTR
(
value
),
flags
);
default:
FIXME
(
"not implemented vt %d
\n
"
,
V_VT
(
value
));
return
E_NOTIMPL
;
}
return
S_OK
;
}
static
inline
HRESULT
set_style_attr
(
HTMLStyle
*
This
,
styleid_t
sid
,
LPCWSTR
value
,
DWORD
flags
)
{
return
set_nsstyle_attr
(
This
->
nsstyle
,
sid
,
value
,
flags
);
...
...
@@ -1581,15 +1599,7 @@ static HRESULT WINAPI HTMLStyle_put_top(IHTMLStyle *iface, VARIANT v)
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
switch
(
V_VT
(
&
v
))
{
case
VT_BSTR
:
return
set_style_attr
(
This
,
STYLEID_TOP
,
V_BSTR
(
&
v
),
0
);
default:
FIXME
(
"unimplemented vt %d
\n
"
,
V_VT
(
&
v
));
return
E_NOTIMPL
;
}
return
S_OK
;
return
set_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_TOP
,
&
v
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle_get_top
(
IHTMLStyle
*
iface
,
VARIANT
*
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
6cf4060a
...
...
@@ -2359,6 +2359,17 @@ static void test_default_style(IHTMLStyle *style)
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"3px"
),
"V_BSTR(v) = %s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_NULL
;
hres
=
IHTMLStyle_put_top
(
style
,
v
);
ok
(
hres
==
S_OK
,
"put_top failed: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLStyle_get_top
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_top failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(v)=%d
\n
"
,
V_VT
(
&
v
));
ok
(
!
V_BSTR
(
&
v
),
"V_BSTR(v) != NULL
\n
"
);
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLStyle_get_height
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_height failed: %08x
\n
"
,
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