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
7b37a1bd
Commit
7b37a1bd
authored
Aug 25, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added HTMLAttributeCollection_get_length implementation.
parent
33881c44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
4 deletions
+44
-4
htmlelem.c
dlls/mshtml/htmlelem.c
+44
-4
No files found.
dlls/mshtml/htmlelem.c
View file @
7b37a1bd
...
...
@@ -2171,6 +2171,7 @@ static ULONG WINAPI HTMLAttributeCollection_Release(IHTMLAttributeCollection *if
if
(
!
ref
)
{
IHTMLElement_Release
(
&
This
->
elem
->
IHTMLElement_iface
);
heap_free
(
This
->
collection
);
heap_free
(
This
);
}
...
...
@@ -2210,8 +2211,48 @@ static HRESULT WINAPI HTMLAttributeCollection_Invoke(IHTMLAttributeCollection *i
static
HRESULT
WINAPI
HTMLAttributeCollection_get_length
(
IHTMLAttributeCollection
*
iface
,
LONG
*
p
)
{
HTMLAttributeCollection
*
This
=
impl_from_IHTMLAttributeCollection
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
IDispatchEx
*
dispex
=
&
This
->
elem
->
node
.
dispex
.
IDispatchEx_iface
;
DISPID
id
;
LONG
len
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
FIXME
(
"filter non-enumerable attributes out
\n
"
);
heap_free
(
This
->
collection
);
This
->
size
=
0
;
This
->
collection
=
NULL
;
id
=
DISPID_STARTENUM
;
len
=
0
;
while
(
1
)
{
hres
=
IDispatchEx_GetNextDispID
(
dispex
,
fdexEnumAll
,
id
,
&
id
);
if
(
FAILED
(
hres
))
return
hres
;
else
if
(
hres
==
S_FALSE
)
break
;
len
++
;
}
This
->
collection
=
heap_alloc
(
len
*
sizeof
(
DISPID
));
if
(
!
This
->
collection
)
return
E_OUTOFMEMORY
;
id
=
DISPID_STARTENUM
;
len
=
0
;
while
(
1
)
{
hres
=
IDispatchEx_GetNextDispID
(
dispex
,
fdexEnumAll
,
id
,
&
id
);
if
(
FAILED
(
hres
))
return
hres
;
else
if
(
hres
==
S_FALSE
)
break
;
This
->
collection
[
len
++
]
=
id
;
}
*
p
=
This
->
size
=
len
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLAttributeCollection__newEnum
(
IHTMLAttributeCollection
*
iface
,
IUnknown
**
p
)
...
...
@@ -2418,8 +2459,7 @@ static HRESULT WINAPI HTMLAttributeCollection3_item(IHTMLAttributeCollection3 *i
static
HRESULT
WINAPI
HTMLAttributeCollection3_get_length
(
IHTMLAttributeCollection3
*
iface
,
LONG
*
p
)
{
HTMLAttributeCollection
*
This
=
impl_from_IHTMLAttributeCollection3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
return
IHTMLAttributeCollection_get_length
(
&
This
->
IHTMLAttributeCollection_iface
,
p
);
}
static
const
IHTMLAttributeCollection3Vtbl
HTMLAttributeCollection3Vtbl
=
{
...
...
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