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
53e9acbf
Commit
53e9acbf
authored
Nov 28, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: style attribute is a special case for setAttribute and removeAttribute.
parent
96f62817
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
htmlelem.c
dlls/mshtml/htmlelem.c
+24
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
53e9acbf
...
...
@@ -28,6 +28,7 @@
#include "winreg.h"
#include "ole2.h"
#include "shlwapi.h"
#include "mshtmdid.h"
#include "wine/debug.h"
...
...
@@ -621,6 +622,11 @@ static HRESULT WINAPI HTMLElement_setAttribute(IHTMLElement *iface, BSTR strAttr
if
(
FAILED
(
hres
))
return
hres
;
if
(
dispid
==
DISPID_IHTMLELEMENT_STYLE
)
{
TRACE
(
"Ignoring call on style attribute
\n
"
);
return
S_OK
;
}
dispParams
.
cArgs
=
1
;
dispParams
.
cNamedArgs
=
1
;
dispParams
.
rgdispidNamedArgs
=
&
dispidNamed
;
...
...
@@ -675,6 +681,24 @@ static HRESULT WINAPI HTMLElement_removeAttribute(IHTMLElement *iface, BSTR strA
if
(
FAILED
(
hres
))
return
hres
;
if
(
id
==
DISPID_IHTMLELEMENT_STYLE
)
{
IHTMLStyle
*
style
;
TRACE
(
"Special case: style
\n
"
);
hres
=
IHTMLElement_get_style
(
&
This
->
IHTMLElement_iface
,
&
style
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IHTMLStyle_put_cssText
(
style
,
NULL
);
IHTMLStyle_Release
(
style
);
if
(
FAILED
(
hres
))
return
hres
;
*
pfSuccess
=
VARIANT_TRUE
;
return
S_OK
;
}
return
remove_attribute
(
&
This
->
node
.
dispex
,
id
,
pfSuccess
);
}
...
...
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