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
a3ff647c
Commit
a3ff647c
authored
Feb 08, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLImgElement::height property implementation.
parent
11ec75c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
7 deletions
+27
-7
htmlimg.c
dlls/mshtml/htmlimg.c
+24
-4
dom.c
dlls/mshtml/tests/dom.c
+3
-3
No files found.
dlls/mshtml/htmlimg.c
View file @
a3ff647c
...
...
@@ -494,15 +494,35 @@ static HRESULT WINAPI HTMLImgElement_get_width(IHTMLImgElement *iface, LONG *p)
static
HRESULT
WINAPI
HTMLImgElement_put_height
(
IHTMLImgElement
*
iface
,
LONG
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%d)
\n
"
,
This
,
v
);
return
E_NOTIMPL
;
nsresult
nsres
;
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
v
);
nsres
=
nsIDOMHTMLImageElement_SetHeight
(
This
->
nsimg
,
v
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"SetHeight failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_height
(
IHTMLImgElement
*
iface
,
LONG
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
PRInt32
height
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMHTMLImageElement_GetHeight
(
This
->
nsimg
,
&
height
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetHeight failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
*
p
=
height
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_start
(
IHTMLImgElement
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
a3ff647c
...
...
@@ -1167,8 +1167,8 @@ static void _test_img_height(unsigned line, IHTMLImgElement *img, const long exp
HRESULT
hres
;
hres
=
IHTMLImgElement_get_height
(
img
,
&
found
);
todo_wine
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_height failed: %08x
\n
"
,
hres
);
todo_wine
ok_
(
__FILE__
,
line
)
(
found
==
exp
,
"height=%d
\n
"
,
found
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_height failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
found
==
exp
,
"height=%d
\n
"
,
found
);
}
#define test_img_put_height(o,w) _test_img_put_height(__LINE__,o,w)
...
...
@@ -1177,7 +1177,7 @@ static void _test_img_put_height(unsigned line, IHTMLImgElement *img, const long
HRESULT
hres
;
hres
=
IHTMLImgElement_put_height
(
img
,
height
);
todo_wine
ok
(
hres
==
S_OK
,
"put_height failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"put_height failed: %08x
\n
"
,
hres
);
_test_img_height
(
line
,
img
,
height
);
}
...
...
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