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
9c53e8d9
Commit
9c53e8d9
authored
Oct 20, 2009
by
Andrew Eikum
Committed by
Alexandre Julliard
Oct 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement HTMLImageElementFactory::create.
parent
9579d64c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
4 deletions
+40
-4
htmlimg.c
dlls/mshtml/htmlimg.c
+39
-3
dom.c
dlls/mshtml/tests/dom.c
+1
-1
No files found.
dlls/mshtml/htmlimg.c
View file @
9c53e8d9
...
...
@@ -702,11 +702,47 @@ static HRESULT WINAPI HTMLImageElementFactory_Invoke(IHTMLImageElementFactory *i
}
static
HRESULT
WINAPI
HTMLImageElementFactory_create
(
IHTMLImageElementFactory
*
iface
,
VARIANT
width
,
VARIANT
height
,
IHTMLImgElement
**
elem
)
VARIANT
width
,
VARIANT
height
,
IHTMLImgElement
**
img_
elem
)
{
HTMLImageElementFactory
*
This
=
HTMLIMGFACTORY_THIS
(
iface
);
FIXME
(
"(%p)->(%s %s %p)
\n
"
,
This
,
debugstr_variant
(
&
width
),
debugstr_variant
(
&
height
),
elem
);
return
E_NOTIMPL
;
HTMLElement
*
elem
;
nsIDOMHTMLElement
*
nselem
;
HRESULT
hres
;
static
const
PRUnichar
imgW
[]
=
{
'I'
,
'M'
,
'G'
,
0
};
TRACE
(
"(%p)->(%s %s %p)
\n
"
,
This
,
debugstr_variant
(
&
width
),
debugstr_variant
(
&
height
),
img_elem
);
if
(
!
This
->
window
||
!
This
->
window
->
doc
)
{
WARN
(
"NULL doc
\n
"
);
return
E_UNEXPECTED
;
}
*
img_elem
=
NULL
;
hres
=
create_nselem
(
This
->
window
->
doc
,
imgW
,
&
nselem
);
if
(
FAILED
(
hres
))
return
hres
;
elem
=
HTMLElement_Create
(
This
->
window
->
doc
,
(
nsIDOMNode
*
)
nselem
,
FALSE
);
if
(
!
elem
)
{
ERR
(
"HTMLElement_Create failed
\n
"
);
return
E_FAIL
;
}
hres
=
IHTMLElement_QueryInterface
(
HTMLELEM
(
elem
),
&
IID_IHTMLImgElement
,
(
void
**
)
img_elem
);
if
(
FAILED
(
hres
))
{
ERR
(
"IHTMLElement_QueryInterface failed: 0x%08x
\n
"
,
hres
);
return
hres
;
}
nsIDOMHTMLElement_Release
(
nselem
);
if
(
V_VT
(
&
width
)
!=
VT_EMPTY
||
V_VT
(
&
height
)
!=
VT_EMPTY
)
FIXME
(
"Not setting image dimensions
\n
"
);
return
S_OK
;
}
#undef HTMLIMGFACTORY_THIS
...
...
dlls/mshtml/tests/dom.c
View file @
9c53e8d9
...
...
@@ -1137,7 +1137,7 @@ static IHTMLImgElement *_create_img_elem(unsigned line, IHTMLDocument2 *doc,
}
hres
=
IHTMLImageElementFactory_create
(
factory
,
width
,
height
,
&
img
);
todo_wine
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"create failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"create failed: %08x
\n
"
,
hres
);
IHTMLImageElementFactory_Release
(
factory
);
VariantClear
(
&
width
);
...
...
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