Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9483760b
Commit
9483760b
authored
Apr 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
May 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDispatchEx support to HTMLStyle.
parent
cecb2652
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
dispex.c
dlls/mshtml/dispex.c
+2
-0
htmlstyle.c
dlls/mshtml/htmlstyle.c
+17
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
dom.c
dlls/mshtml/tests/dom.c
+2
-0
No files found.
dlls/mshtml/dispex.c
View file @
9483760b
...
...
@@ -58,6 +58,7 @@ static REFIID tid_ids[] = {
&
DIID_DispHTMLElementCollection
,
&
DIID_DispHTMLInputElement
,
&
DIID_DispHTMLOptionElement
,
&
DIID_DispHTMLStyle
,
&
DIID_DispHTMLUnknownElement
,
&
DIID_DispHTMLWindow2
,
&
IID_IHTMLCommentElement
,
...
...
@@ -74,6 +75,7 @@ static REFIID tid_ids[] = {
&
IID_IHTMLElementCollection
,
&
IID_IHTMLInputElement
,
&
IID_IHTMLOptionElement
,
&
IID_IHTMLStyle
,
&
IID_IHTMLWindow2
,
&
IID_IHTMLWindow3
,
&
IID_IOmNavigator
...
...
dlls/mshtml/htmlstyle.c
View file @
9483760b
...
...
@@ -33,6 +33,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
typedef
struct
{
DispatchEx
dispex
;
const
IHTMLStyleVtbl
*
lpHTMLStyleVtbl
;
LONG
ref
;
...
...
@@ -40,7 +41,7 @@ typedef struct {
nsIDOMCSSStyleDeclaration
*
nsstyle
;
}
HTMLStyle
;
#define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl)
;
#define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl)
static
const
WCHAR
attrBackgroundColor
[]
=
{
'b'
,
'a'
,
'c'
,
'k'
,
'g'
,
'r'
,
'o'
,
'u'
,
'n'
,
'd'
,
'-'
,
'c'
,
'o'
,
'l'
,
'o'
,
'r'
,
0
};
...
...
@@ -213,6 +214,9 @@ static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, v
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLSTYLE
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatchEx
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatchEx %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
&
This
->
dispex
);
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLStyle
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLStyle %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLSTYLE
(
This
);
...
...
@@ -1841,6 +1845,16 @@ static const IHTMLStyleVtbl HTMLStyleVtbl = {
HTMLStyle_toString
};
static
dispex_static_data_t
HTMLStyle_dispex
=
{
NULL
,
DispHTMLStyle_tid
,
NULL
,
{
IHTMLStyle_tid
,
0
}
};
IHTMLStyle
*
HTMLStyle_Create
(
nsIDOMCSSStyleDeclaration
*
nsstyle
)
{
HTMLStyle
*
ret
=
heap_alloc
(
sizeof
(
HTMLStyle
));
...
...
@@ -1851,5 +1865,7 @@ IHTMLStyle *HTMLStyle_Create(nsIDOMCSSStyleDeclaration *nsstyle)
nsIDOMCSSStyleDeclaration_AddRef
(
nsstyle
);
init_dispex
(
&
ret
->
dispex
,
(
IUnknown
*
)
HTMLSTYLE
(
ret
),
&
HTMLStyle_dispex
);
return
HTMLSTYLE
(
ret
);
}
dlls/mshtml/mshtml_private.h
View file @
9483760b
...
...
@@ -68,6 +68,7 @@ typedef enum {
DispHTMLElementCollection_tid
,
DispHTMLInputElement_tid
,
DispHTMLOptionElement_tid
,
DispHTMLStyle_tid
,
DispHTMLUnknownElement_tid
,
DispHTMLWindow2_tid
,
IHTMLCommentElement_tid
,
...
...
@@ -84,6 +85,7 @@ typedef enum {
IHTMLElementCollection_tid
,
IHTMLInputElement_tid
,
IHTMLOptionElement_tid
,
IHTMLStyle_tid
,
IHTMLWindow2_tid
,
IHTMLWindow3_tid
,
IOmNavigator_tid
,
...
...
dlls/mshtml/tests/dom.c
View file @
9483760b
...
...
@@ -1290,6 +1290,8 @@ static void test_default_style(IHTMLStyle *style)
BSTR
str
;
HRESULT
hres
;
test_disp
((
IUnknown
*
)
style
,
&
DIID_DispHTMLStyle
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLStyle_get_fontFamily
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_fontFamily failed: %08x
\n
"
,
hres
);
...
...
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