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
ba394d68
Commit
ba394d68
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 IHTMLStyle2::right implementation.
parent
0f940bcc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
htmlstyle2.c
dlls/mshtml/htmlstyle2.c
+8
-4
dom.c
dlls/mshtml/tests/dom.c
+22
-0
No files found.
dlls/mshtml/htmlstyle2.c
View file @
ba394d68
...
...
@@ -212,15 +212,19 @@ static HRESULT WINAPI HTMLStyle2_get_bottom(IHTMLStyle2 *iface, VARIANT *p)
static
HRESULT
WINAPI
HTMLStyle2_put_right
(
IHTMLStyle2
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE2_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_RIGHT
,
&
v
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle2_get_right
(
IHTMLStyle2
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE2_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_RIGHT
,
p
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle2_put_pixelBottom
(
IHTMLStyle2
*
iface
,
LONG
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
ba394d68
...
...
@@ -3390,6 +3390,7 @@ static void test_current_style(IHTMLCurrentStyle *current_style)
static
void
test_style2
(
IHTMLStyle2
*
style2
)
{
VARIANT
v
;
BSTR
str
;
HRESULT
hres
;
...
...
@@ -3408,6 +3409,27 @@ static void test_style2(IHTMLStyle2 *style2)
ok
(
hres
==
S_OK
,
"get_position failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"absolute"
),
"get_position returned %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
/* Test right */
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLStyle2_get_right
(
style2
,
&
v
);
ok
(
hres
==
S_OK
,
"get_top failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(right)=%d
\n
"
,
V_VT
(
&
v
));
ok
(
!
V_BSTR
(
&
v
),
"V_BSTR(right) != NULL
\n
"
);
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"3px"
);
hres
=
IHTMLStyle2_put_right
(
style2
,
v
);
ok
(
hres
==
S_OK
,
"put_right failed: %08x
\n
"
,
hres
);
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLStyle2_get_right
(
style2
,
&
v
);
ok
(
hres
==
S_OK
,
"get_right failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(v)=%d
\n
"
,
V_VT
(
&
v
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"3px"
),
"V_BSTR(v) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
}
static
void
test_style3
(
IHTMLStyle3
*
style3
)
...
...
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