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
56d1e9ec
Commit
56d1e9ec
authored
Oct 02, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLElement2::get_currentStyle implementation.
parent
3203524b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
3 deletions
+31
-3
Makefile.in
dlls/mshtml/Makefile.in
+1
-0
htmlcurstyle.c
dlls/mshtml/htmlcurstyle.c
+0
-0
htmlelem2.c
dlls/mshtml/htmlelem2.c
+4
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
dom.c
dlls/mshtml/tests/dom.c
+25
-1
No files found.
dlls/mshtml/Makefile.in
View file @
56d1e9ec
...
...
@@ -15,6 +15,7 @@ C_SRCS = \
htmlanchor.c
\
htmlbody.c
\
htmlcomment.c
\
htmlcurstyle.c
\
htmldoc.c
\
htmldoc3.c
\
htmldoc5.c
\
...
...
dlls/mshtml/htmlcurstyle.c
0 → 100644
View file @
56d1e9ec
This diff is collapsed.
Click to expand it.
dlls/mshtml/htmlelem2.c
View file @
56d1e9ec
...
...
@@ -318,8 +318,10 @@ static HRESULT WINAPI HTMLElement2_get_onpaste(IHTMLElement2 *iface, VARIANT *p)
static
HRESULT
WINAPI
HTMLElement2_get_currentStyle
(
IHTMLElement2
*
iface
,
IHTMLCurrentStyle
**
p
)
{
HTMLElement
*
This
=
HTMLELEM2_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
HTMLCurrentStyle_Create
(
p
);
}
static
HRESULT
WINAPI
HTMLElement2_put_onpropertychange
(
IHTMLElement2
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/mshtml_private.h
View file @
56d1e9ec
...
...
@@ -486,6 +486,7 @@ void HTMLDocument_Service_Init(HTMLDocument*);
void
HTMLDocument_Hlink_Init
(
HTMLDocument
*
);
void
HTMLStyle2_Init
(
HTMLStyle
*
);
HRESULT
HTMLCurrentStyle_Create
(
IHTMLCurrentStyle
**
);
void
ConnectionPoint_Init
(
ConnectionPoint
*
,
ConnectionPointContainer
*
,
REFIID
);
void
ConnectionPointContainer_Init
(
ConnectionPointContainer
*
,
IUnknown
*
);
...
...
dlls/mshtml/tests/dom.c
View file @
56d1e9ec
...
...
@@ -278,6 +278,13 @@ static const IID * const style_iids[] = {
NULL
};
static
const
IID
*
const
cstyle_iids
[]
=
{
&
IID_IUnknown
,
&
IID_IDispatch
,
&
IID_IHTMLCurrentStyle
,
NULL
};
typedef
struct
{
const
char
*
tag
;
REFIID
*
iids
;
...
...
@@ -1976,6 +1983,11 @@ static void test_navigator(IHTMLDocument2 *doc)
ok
(
!
ref
,
"navigator should be destroyed here
\n
"
);
}
static
void
test_current_style
(
IHTMLCurrentStyle
*
current_style
)
{
test_ifaces
((
IUnknown
*
)
current_style
,
cstyle_iids
);
}
static
void
test_default_style
(
IHTMLStyle
*
style
)
{
VARIANT_BOOL
b
;
...
...
@@ -2224,7 +2236,9 @@ static void test_window(IHTMLDocument2 *doc)
static
void
test_defaults
(
IHTMLDocument2
*
doc
)
{
IHTMLStyleSheetsCollection
*
stylesheetcol
;
IHTMLCurrentStyle
*
cstyle
;
IHTMLBodyElement
*
body
;
IHTMLElement2
*
elem2
;
IHTMLElement
*
elem
;
IHTMLStyle
*
style
;
long
l
;
...
...
@@ -2240,7 +2254,6 @@ static void test_defaults(IHTMLDocument2 *doc)
IHTMLBodyElement_Release
(
body
);
hres
=
IHTMLElement_get_style
(
elem
,
&
style
);
IHTMLElement_Release
(
elem
);
ok
(
hres
==
S_OK
,
"get_style failed: %08x
\n
"
,
hres
);
test_default_style
(
style
);
...
...
@@ -2251,6 +2264,17 @@ static void test_defaults(IHTMLDocument2 *doc)
IHTMLStyle_Release
(
style
);
elem2
=
get_elem2_iface
((
IUnknown
*
)
elem
);
hres
=
IHTMLElement2_get_currentStyle
(
elem2
,
&
cstyle
);
ok
(
hres
==
S_OK
,
"get_currentStyle failed: %08x
\n
"
,
hres
);
if
(
SUCCEEDED
(
hres
))
{
test_current_style
(
cstyle
);
IHTMLCurrentStyle_Release
(
cstyle
);
}
IHTMLElement2_Release
(
elem2
);
IHTMLElement_Release
(
elem
);
hres
=
IHTMLDocument2_get_styleSheets
(
doc
,
&
stylesheetcol
);
ok
(
hres
==
S_OK
,
"get_styleSheets 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