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
0f60681a
Commit
0f60681a
authored
Jan 07, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLStyle::put_pixelLeft implementation.
parent
85368869
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+4
-2
style.c
dlls/mshtml/tests/style.c
+15
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
0f60681a
...
@@ -2412,8 +2412,10 @@ static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, LONG *p)
...
@@ -2412,8 +2412,10 @@ static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, LONG *p)
static
HRESULT
WINAPI
HTMLStyle_put_pixelLeft
(
IHTMLStyle
*
iface
,
LONG
v
)
static
HRESULT
WINAPI
HTMLStyle_put_pixelLeft
(
IHTMLStyle
*
iface
,
LONG
v
)
{
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
v
);
return
set_style_pxattr
(
This
->
nsstyle
,
STYLEID_LEFT
,
v
);
}
}
static
HRESULT
WINAPI
HTMLStyle_get_pixelLeft
(
IHTMLStyle
*
iface
,
LONG
*
p
)
static
HRESULT
WINAPI
HTMLStyle_get_pixelLeft
(
IHTMLStyle
*
iface
,
LONG
*
p
)
...
...
dlls/mshtml/tests/style.c
View file @
0f60681a
...
@@ -984,6 +984,21 @@ static void test_body_style(IHTMLStyle *style)
...
@@ -984,6 +984,21 @@ static void test_body_style(IHTMLStyle *style)
ok
(
hres
==
S_OK
,
"get_pixelLeft failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"get_pixelLeft failed: %08x
\n
"
,
hres
);
ok
(
!
l
,
"pixelLeft = %d
\n
"
,
l
);
ok
(
!
l
,
"pixelLeft = %d
\n
"
,
l
);
hres
=
IHTMLStyle_put_pixelLeft
(
style
,
6
);
ok
(
hres
==
S_OK
,
"put_pixelLeft failed: %08x
\n
"
,
hres
);
l
=
0xdeadbeef
;
hres
=
IHTMLStyle_get_pixelLeft
(
style
,
&
l
);
ok
(
hres
==
S_OK
,
"get_pixelLeft failed: %08x
\n
"
,
hres
);
ok
(
l
==
6
,
"pixelLeft = %d
\n
"
,
l
);
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLStyle_get_left
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_left failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(v)=%d
\n
"
,
V_VT
(
&
v
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"6px"
),
"V_BSTR(v) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
/* Test posTop */
/* Test posTop */
hres
=
IHTMLStyle_get_posTop
(
style
,
NULL
);
hres
=
IHTMLStyle_get_posTop
(
style
,
NULL
);
ok
(
hres
==
E_POINTER
,
"get_posTop failed: %08x
\n
"
,
hres
);
ok
(
hres
==
E_POINTER
,
"get_posTop 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