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
337c0663
Commit
337c0663
authored
Feb 03, 2009
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Add support for IHTMLStyle3 interface.
parent
8716c62c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
0 deletions
+9
-0
Makefile.in
dlls/mshtml/Makefile.in
+1
-0
htmlstyle.c
dlls/mshtml/htmlstyle.c
+4
-0
htmlstyle.h
dlls/mshtml/htmlstyle.h
+3
-0
htmlstyle3.c
dlls/mshtml/htmlstyle3.c
+0
-0
dom.c
dlls/mshtml/tests/dom.c
+1
-0
No files found.
dlls/mshtml/Makefile.in
View file @
337c0663
...
...
@@ -35,6 +35,7 @@ C_SRCS = \
htmlselect.c
\
htmlstyle.c
\
htmlstyle2.c
\
htmlstyle3.c
\
htmlstylesheet.c
\
htmltable.c
\
htmltablerow.c
\
...
...
dlls/mshtml/htmlstyle.c
View file @
337c0663
...
...
@@ -468,6 +468,9 @@ static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, v
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLStyle2
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLStyle2 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLSTYLE2
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLStyle3
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLStyle3 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLSTYLE3
(
This
);
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
...
...
@@ -2425,6 +2428,7 @@ IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
ret
->
ref
=
1
;
ret
->
nsstyle
=
nsstyle
;
HTMLStyle2_Init
(
ret
);
HTMLStyle3_Init
(
ret
);
nsIDOMCSSStyleDeclaration_AddRef
(
nsstyle
);
...
...
dlls/mshtml/htmlstyle.h
View file @
337c0663
...
...
@@ -20,6 +20,7 @@ struct HTMLStyle {
DispatchEx
dispex
;
const
IHTMLStyleVtbl
*
lpHTMLStyleVtbl
;
const
IHTMLStyle2Vtbl
*
lpHTMLStyle2Vtbl
;
const
IHTMLStyle3Vtbl
*
lpHTMLStyle3Vtbl
;
LONG
ref
;
...
...
@@ -28,6 +29,7 @@ struct HTMLStyle {
#define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl)
#define HTMLSTYLE2(x) ((IHTMLStyle2*) &(x)->lpHTMLStyle2Vtbl)
#define HTMLSTYLE3(x) ((IHTMLStyle3*) &(x)->lpHTMLStyle3Vtbl)
/* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
typedef
enum
{
...
...
@@ -68,6 +70,7 @@ typedef enum {
}
styleid_t
;
void
HTMLStyle2_Init
(
HTMLStyle
*
);
void
HTMLStyle3_Init
(
HTMLStyle
*
);
HRESULT
get_nsstyle_attr
(
nsIDOMCSSStyleDeclaration
*
,
styleid_t
,
BSTR
*
);
HRESULT
set_nsstyle_attr
(
nsIDOMCSSStyleDeclaration
*
,
styleid_t
,
LPCWSTR
,
DWORD
);
dlls/mshtml/htmlstyle3.c
0 → 100644
View file @
337c0663
This diff is collapsed.
Click to expand it.
dlls/mshtml/tests/dom.c
View file @
337c0663
...
...
@@ -307,6 +307,7 @@ static const IID * const style_iids[] = {
&
IID_IDispatchEx
,
&
IID_IHTMLStyle
,
&
IID_IHTMLStyle2
,
&
IID_IHTMLStyle3
,
NULL
};
...
...
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