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
9756574f
Commit
9756574f
authored
Apr 07, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Add IHTMLStyleSheet4::insertRule implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
171f8ada
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
htmlstylesheet.c
dlls/mshtml/htmlstylesheet.c
+13
-3
No files found.
dlls/mshtml/htmlstylesheet.c
View file @
9756574f
...
...
@@ -1059,11 +1059,21 @@ static HRESULT WINAPI HTMLStyleSheet4_get_media(IHTMLStyleSheet4 *iface, VARIANT
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyleSheet4_insertRule
(
IHTMLStyleSheet4
*
iface
,
BSTR
rule
,
LONG
index
,
LONG
*
new_index
)
static
HRESULT
WINAPI
HTMLStyleSheet4_insertRule
(
IHTMLStyleSheet4
*
iface
,
BSTR
rule
,
LONG
index
,
LONG
*
p
)
{
HTMLStyleSheet
*
This
=
impl_from_IHTMLStyleSheet4
(
iface
);
FIXME
(
"(%p)->(%s %d %p)
\n
"
,
This
,
debugstr_w
(
rule
),
index
,
new_index
);
return
E_NOTIMPL
;
UINT32
new_index
=
0
;
nsAString
nsstr
;
nsresult
nsres
;
TRACE
(
"(%p)->(%s %d %p)
\n
"
,
This
,
debugstr_w
(
rule
),
index
,
p
);
nsAString_InitDepend
(
&
nsstr
,
rule
);
nsres
=
nsIDOMCSSStyleSheet_InsertRule
(
This
->
nsstylesheet
,
&
nsstr
,
index
,
&
new_index
);
if
(
NS_FAILED
(
nsres
))
WARN
(
"failed: %08x
\n
"
,
nsres
);
nsAString_Finish
(
&
nsstr
);
*
p
=
new_index
;
return
map_nsresult
(
nsres
);
}
static
HRESULT
WINAPI
HTMLStyleSheet4_deleteRule
(
IHTMLStyleSheet4
*
iface
,
LONG
index
)
...
...
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