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
0cad55ae
Commit
0cad55ae
authored
Apr 16, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLStyle::removeAttribute implementation.
parent
a9c83385
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
3 deletions
+51
-3
htmlstyle.c
dlls/mshtml/htmlstyle.c
+51
-3
No files found.
dlls/mshtml/htmlstyle.c
View file @
0cad55ae
...
@@ -2748,9 +2748,57 @@ static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttri
...
@@ -2748,9 +2748,57 @@ static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttri
LONG
lFlags
,
VARIANT_BOOL
*
pfSuccess
)
LONG
lFlags
,
VARIANT_BOOL
*
pfSuccess
)
{
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
FIXME
(
"(%p)->(%s %08x %p)
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
const
style_tbl_entry_t
*
style_entry
;
lFlags
,
pfSuccess
);
nsAString
name_str
,
ret_str
;
return
E_NOTIMPL
;
nsresult
nsres
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s %08x %p)
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
lFlags
,
pfSuccess
);
style_entry
=
lookup_style_tbl
(
strAttributeName
);
if
(
!
style_entry
)
{
DISPID
dispid
;
unsigned
i
;
hres
=
IDispatchEx_GetDispID
(
&
This
->
dispex
.
IDispatchEx_iface
,
strAttributeName
,
(
lFlags
&
1
)
?
fdexNameCaseSensitive
:
fdexNameCaseInsensitive
,
&
dispid
);
if
(
hres
!=
S_OK
)
{
*
pfSuccess
=
VARIANT_FALSE
;
return
S_OK
;
}
for
(
i
=
0
;
i
<
sizeof
(
style_tbl
)
/
sizeof
(
*
style_tbl
);
i
++
)
{
if
(
dispid
==
style_tbl
[
i
].
dispid
)
break
;
}
if
(
i
==
sizeof
(
style_tbl
)
/
sizeof
(
*
style_tbl
))
return
remove_prop
(
&
This
->
dispex
,
strAttributeName
,
pfSuccess
);
style_entry
=
style_tbl
+
i
;
}
/* filter property is a special case */
if
(
style_entry
->
dispid
==
DISPID_IHTMLSTYLE_FILTER
)
{
*
pfSuccess
=
This
->
elem
->
filter
&&
*
This
->
elem
->
filter
?
VARIANT_TRUE
:
VARIANT_FALSE
;
heap_free
(
This
->
elem
->
filter
);
This
->
elem
->
filter
=
NULL
;
update_filter
(
This
);
return
S_OK
;
}
nsAString_InitDepend
(
&
name_str
,
style_entry
->
name
);
nsAString_Init
(
&
ret_str
,
NULL
);
nsres
=
nsIDOMCSSStyleDeclaration_RemoveProperty
(
This
->
nsstyle
,
&
name_str
,
&
ret_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
ret
;
nsAString_GetData
(
&
ret_str
,
&
ret
);
*
pfSuccess
=
*
ret
?
VARIANT_TRUE
:
VARIANT_FALSE
;
}
else
{
ERR
(
"RemoveProperty failed: %08x
\n
"
,
nsres
);
}
nsAString_Finish
(
&
name_str
);
nsAString_Finish
(
&
ret_str
);
return
NS_SUCCEEDED
(
nsres
)
?
S_OK
:
E_FAIL
;
}
}
static
HRESULT
WINAPI
HTMLStyle_toString
(
IHTMLStyle
*
iface
,
BSTR
*
String
)
static
HRESULT
WINAPI
HTMLStyle_toString
(
IHTMLStyle
*
iface
,
BSTR
*
String
)
...
...
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