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
e391872e
Commit
e391872e
authored
Sep 13, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Forward attributes functions from IHTMLElement6 to older interfaces.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a3ba3ac4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
10 deletions
+49
-10
htmlelem.c
dlls/mshtml/htmlelem.c
+49
-10
No files found.
dlls/mshtml/htmlelem.c
View file @
e391872e
...
...
@@ -4036,36 +4036,75 @@ static HRESULT WINAPI HTMLElement6_hasAttributeNS(IHTMLElement6 *iface, VARIANT
static
HRESULT
WINAPI
HTMLElement6_getAttribute
(
IHTMLElement6
*
iface
,
BSTR
strAttributeName
,
VARIANT
*
AttributeValue
)
{
HTMLElement
*
This
=
impl_from_IHTMLElement6
(
iface
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
AttributeValue
);
return
E_NOTIMPL
;
WARN
(
"(%p)->(%s %p) forwarding to IHTMLElement
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
AttributeValue
);
return
IHTMLElement_getAttribute
(
&
This
->
IHTMLElement_iface
,
strAttributeName
,
0
,
AttributeValue
);
}
static
HRESULT
WINAPI
HTMLElement6_setAttribute
(
IHTMLElement6
*
iface
,
BSTR
strAttributeName
,
VARIANT
*
pvarAttributeValue
)
{
HTMLElement
*
This
=
impl_from_IHTMLElement6
(
iface
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
pvarAttributeValue
);
return
E_NOTIMPL
;
WARN
(
"(%p)->(%s %p) forwarding to IHTMLElement
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
pvarAttributeValue
);
return
IHTMLElement_setAttribute
(
&
This
->
IHTMLElement_iface
,
strAttributeName
,
*
pvarAttributeValue
,
0
);
}
static
HRESULT
WINAPI
HTMLElement6_removeAttribute
(
IHTMLElement6
*
iface
,
BSTR
strAttributeName
)
{
HTMLElement
*
This
=
impl_from_IHTMLElement6
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
strAttributeName
));
return
E_NOTIMPL
;
VARIANT_BOOL
success
;
WARN
(
"(%p)->(%s) forwarding to IHTMLElement
\n
"
,
This
,
debugstr_w
(
strAttributeName
));
return
IHTMLElement_removeAttribute
(
&
This
->
IHTMLElement_iface
,
strAttributeName
,
0
,
&
success
);
}
static
HRESULT
WINAPI
HTMLElement6_getAttributeNode
(
IHTMLElement6
*
iface
,
BSTR
strAttributeName
,
IHTMLDOMAttribute2
**
ppretAttribute
)
{
HTMLElement
*
This
=
impl_from_IHTMLElement6
(
iface
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
ppretAttribute
);
return
E_NOTIMPL
;
IHTMLDOMAttribute
*
attr
;
HRESULT
hres
;
WARN
(
"(%p)->(%s %p) forwarding to IHTMLElement4
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
ppretAttribute
);
hres
=
IHTMLElement4_getAttributeNode
(
&
This
->
IHTMLElement4_iface
,
strAttributeName
,
&
attr
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
attr
)
{
hres
=
IHTMLDOMAttribute_QueryInterface
(
attr
,
&
IID_IHTMLDOMAttribute2
,
(
void
**
)
ppretAttribute
);
IHTMLDOMAttribute_Release
(
attr
);
}
else
{
*
ppretAttribute
=
NULL
;
}
return
hres
;
}
static
HRESULT
WINAPI
HTMLElement6_setAttributeNode
(
IHTMLElement6
*
iface
,
IHTMLDOMAttribute2
*
pattr
,
IHTMLDOMAttribute2
**
ppretAttribute
)
{
HTMLElement
*
This
=
impl_from_IHTMLElement6
(
iface
);
FIXME
(
"(%p)->(%p %p)
\n
"
,
This
,
pattr
,
ppretAttribute
);
return
E_NOTIMPL
;
IHTMLDOMAttribute
*
attr
,
*
ret_attr
;
HRESULT
hres
;
WARN
(
"(%p)->(%p %p) forwarding to IHTMLElement4
\n
"
,
This
,
pattr
,
ppretAttribute
);
hres
=
IHTMLDOMAttribute2_QueryInterface
(
pattr
,
&
IID_IHTMLDOMAttribute
,
(
void
**
)
&
attr
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IHTMLElement4_setAttributeNode
(
&
This
->
IHTMLElement4_iface
,
attr
,
&
ret_attr
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
ret_attr
)
{
hres
=
IHTMLDOMAttribute_QueryInterface
(
ret_attr
,
&
IID_IHTMLDOMAttribute2
,
(
void
**
)
ppretAttribute
);
IHTMLDOMAttribute_Release
(
ret_attr
);
}
else
{
*
ppretAttribute
=
NULL
;
}
return
hres
;
}
static
HRESULT
WINAPI
HTMLElement6_removeAttributeNode
(
IHTMLElement6
*
iface
,
IHTMLDOMAttribute2
*
pattr
,
IHTMLDOMAttribute2
**
ppretAttribute
)
...
...
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