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
fb9af464
Commit
fb9af464
authored
Sep 02, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added HTMLAttributeCollection_get_dispid implementation.
parent
4d74236f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
htmlelem.c
dlls/mshtml/htmlelem.c
+26
-6
No files found.
dlls/mshtml/htmlelem.c
View file @
fb9af464
...
...
@@ -2269,9 +2269,10 @@ static inline HRESULT get_attr_dispid_by_name(HTMLAttributeCollection *This, BST
return
hres
;
}
static
inline
HRESULT
get_domattr
(
HTMLAttributeCollection
*
This
,
DISPID
id
,
HTMLDOMAttribute
**
attr
)
static
inline
HRESULT
get_domattr
(
HTMLAttributeCollection
*
This
,
DISPID
id
,
LONG
*
list_pos
,
HTMLDOMAttribute
**
attr
)
{
HTMLDOMAttribute
*
iter
;
LONG
pos
=
0
;
HRESULT
hres
;
*
attr
=
NULL
;
...
...
@@ -2280,6 +2281,7 @@ static inline HRESULT get_domattr(HTMLAttributeCollection *This, DISPID id, HTML
*
attr
=
iter
;
break
;
}
pos
++
;
}
if
(
!*
attr
)
{
...
...
@@ -2288,12 +2290,15 @@ static inline HRESULT get_domattr(HTMLAttributeCollection *This, DISPID id, HTML
return
E_UNEXPECTED
;
}
pos
++
;
hres
=
HTMLDOMAttribute_Create
(
This
->
elem
,
id
,
attr
);
if
(
FAILED
(
hres
))
return
hres
;
}
IHTMLDOMAttribute_AddRef
(
&
(
*
attr
)
->
IHTMLDOMAttribute_iface
);
if
(
list_pos
)
*
list_pos
=
pos
;
return
S_OK
;
}
...
...
@@ -2341,7 +2346,7 @@ static HRESULT WINAPI HTMLAttributeCollection_item(IHTMLAttributeCollection *ifa
if
(
FAILED
(
hres
))
return
hres
;
hres
=
get_domattr
(
This
,
id
,
&
attr
);
hres
=
get_domattr
(
This
,
id
,
NULL
,
&
attr
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
@@ -2433,7 +2438,7 @@ static HRESULT WINAPI HTMLAttributeCollection2_getNamedItem(IHTMLAttributeCollec
return
hres
;
}
hres
=
get_domattr
(
This
,
id
,
&
attr
);
hres
=
get_domattr
(
This
,
id
,
NULL
,
&
attr
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
@@ -2561,7 +2566,7 @@ static HRESULT WINAPI HTMLAttributeCollection3_item(IHTMLAttributeCollection3 *i
if
(
FAILED
(
hres
))
return
hres
;
hres
=
get_domattr
(
This
,
id
,
&
attr
);
hres
=
get_domattr
(
This
,
id
,
NULL
,
&
attr
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
@@ -2598,8 +2603,23 @@ static inline HTMLAttributeCollection *HTMLAttributeCollection_from_DispatchEx(D
static
HRESULT
HTMLAttributeCollection_get_dispid
(
DispatchEx
*
dispex
,
BSTR
name
,
DWORD
flags
,
DISPID
*
dispid
)
{
HTMLAttributeCollection
*
This
=
HTMLAttributeCollection_from_DispatchEx
(
dispex
);
FIXME
(
"(%p)->(%s %x %p)
\n
"
,
This
,
debugstr_w
(
name
),
flags
,
dispid
);
return
E_NOTIMPL
;
HTMLDOMAttribute
*
attr
;
LONG
pos
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s %x %p)
\n
"
,
This
,
debugstr_w
(
name
),
flags
,
dispid
);
hres
=
get_attr_dispid_by_name
(
This
,
name
,
dispid
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
get_domattr
(
This
,
*
dispid
,
&
pos
,
&
attr
);
if
(
FAILED
(
hres
))
return
hres
;
IHTMLDOMAttribute_Release
(
&
attr
->
IHTMLDOMAttribute_iface
);
*
dispid
=
MSHTML_DISPID_CUSTOM_MIN
+
pos
;
return
S_OK
;
}
static
HRESULT
HTMLAttributeCollection_invoke
(
DispatchEx
*
dispex
,
DISPID
id
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
params
,
...
...
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