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
84abbd64
Commit
84abbd64
authored
Dec 10, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Dec 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLStyle get/put posHeight.
parent
7a92db4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
4 deletions
+34
-4
htmlstyle.c
dlls/mshtml/htmlstyle.c
+14
-4
dom.c
dlls/mshtml/tests/dom.c
+20
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
84abbd64
...
...
@@ -1933,15 +1933,25 @@ static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p)
static
HRESULT
WINAPI
HTMLStyle_put_posHeight
(
IHTMLStyle
*
iface
,
float
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%f)
\n
"
,
This
,
v
);
return
set_style_pos
(
This
,
STYLEID_HEIGHT
,
v
);
}
static
HRESULT
WINAPI
HTMLStyle_get_posHeight
(
IHTMLStyle
*
iface
,
float
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
p
)
return
E_POINTER
;
if
(
get_nsstyle_pos
(
This
,
STYLEID_HEIGHT
,
p
)
!=
S_OK
)
*
p
=
0
.
0
f
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLStyle_put_cursor
(
IHTMLStyle
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
84abbd64
...
...
@@ -2513,6 +2513,10 @@ static void test_default_style(IHTMLStyle *style)
ok
(
!
V_BSTR
(
&
v
),
"V_BSTR(v) != NULL
\n
"
);
VariantClear
(
&
v
);
/* Test posHeight */
hres
=
IHTMLStyle_get_posHeight
(
style
,
NULL
);
ok
(
hres
==
E_POINTER
,
"get_left failed: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLStyle_get_height
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_height failed: %08x
\n
"
,
hres
);
...
...
@@ -2520,6 +2524,18 @@ static void test_default_style(IHTMLStyle *style)
ok
(
!
V_BSTR
(
&
v
),
"V_BSTR(v) != NULL
\n
"
);
VariantClear
(
&
v
);
f
=
1
.
0
f
;
hres
=
IHTMLStyle_get_posHeight
(
style
,
&
f
);
ok
(
hres
==
S_OK
,
"get_left failed: %08x
\n
"
,
hres
);
ok
(
f
==
0
.
0
,
"expected 0.0 got %f
\n
"
,
f
);
hres
=
IHTMLStyle_put_posHeight
(
style
,
4
.
9
f
);
ok
(
hres
==
S_OK
,
"get_left failed: %08x
\n
"
,
hres
);
hres
=
IHTMLStyle_get_posHeight
(
style
,
&
f
);
ok
(
hres
==
S_OK
,
"get_left failed: %08x
\n
"
,
hres
);
ok
(
f
==
4
.
0
,
"expected 4.0 got %f
\n
"
,
f
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"64px"
);
hres
=
IHTMLStyle_put_height
(
style
,
v
);
...
...
@@ -2533,6 +2549,10 @@ static void test_default_style(IHTMLStyle *style)
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"64px"
),
"V_BSTR(v) = %s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
hres
=
IHTMLStyle_get_posHeight
(
style
,
&
f
);
ok
(
hres
==
S_OK
,
"get_left failed: %08x
\n
"
,
hres
);
ok
(
f
==
64
.
0
,
"expected 64.0 got %f
\n
"
,
f
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLStyle_get_cursor
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_cursor 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