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
0f940bcc
Commit
0f940bcc
authored
Dec 14, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLStyle::marginTop implementation.
parent
9178a948
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
htmlstyle.c
dlls/mshtml/htmlstyle.c
+8
-4
dom.c
dlls/mshtml/tests/dom.c
+18
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
0f940bcc
...
...
@@ -1219,15 +1219,19 @@ static HRESULT WINAPI HTMLStyle_get_lineHeight(IHTMLStyle *iface, VARIANT *p)
static
HRESULT
WINAPI
HTMLStyle_put_marginTop
(
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_MARGIN_TOP
,
&
v
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle_get_marginTop
(
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_MARGIN_TOP
,
p
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle_put_marginRight
(
IHTMLStyle
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
0f940bcc
...
...
@@ -3802,6 +3802,24 @@ static void test_default_style(IHTMLStyle *style)
hres
=
IHTMLStyle_put_margin
(
style
,
NULL
);
ok
(
hres
==
S_OK
,
"put_margin failed: %08x
\n
"
,
hres
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLStyle_get_marginTop
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_marginTop failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(marginTop) = %d
\n
"
,
V_VT
(
&
v
));
ok
(
!
V_BSTR
(
&
v
),
"V_BSTR(marginTop) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"6px"
);
hres
=
IHTMLStyle_put_marginTop
(
style
,
v
);
SysFreeString
(
V_BSTR
(
&
v
));
ok
(
hres
==
S_OK
,
"put_marginTop failed: %08x
\n
"
,
hres
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLStyle_get_marginTop
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_marginTop failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(marginTop) = %d
\n
"
,
V_VT
(
&
v
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"6px"
),
"V_BSTR(marginTop) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
str
=
NULL
;
hres
=
IHTMLStyle_get_border
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_border 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