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
50126adf
Commit
50126adf
authored
Mar 09, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLStyle::get_cssText implementation.
parent
76d667ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
2 deletions
+38
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+20
-2
dom.c
dlls/mshtml/tests/dom.c
+18
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
50126adf
...
...
@@ -2063,8 +2063,26 @@ static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
static
HRESULT
WINAPI
HTMLStyle_get_cssText
(
IHTMLStyle
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
text_str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
/* FIXME: Gecko style formatting is different than IE (uppercase). */
nsAString_Init
(
&
text_str
,
NULL
);
nsres
=
nsIDOMCSSStyleDeclaration_GetCssText
(
This
->
nsstyle
,
&
text_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
text
;
nsAString_GetData
(
&
text_str
,
&
text
);
*
p
=
*
text
?
SysAllocString
(
text
)
:
NULL
;
}
else
{
FIXME
(
"GetCssStyle failed: %08x
\n
"
,
nsres
);
*
p
=
NULL
;
}
nsAString_Finish
(
&
text_str
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLStyle_put_pixelTop
(
IHTMLStyle
*
iface
,
long
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
50126adf
...
...
@@ -1927,6 +1927,22 @@ static void _test_border_styles(unsigned line, IHTMLStyle *pStyle, BSTR Name)
}
}
#define test_style_csstext(s,t) _test_style_csstext(__LINE__,s,t)
static
void
_test_style_csstext
(
unsigned
line
,
IHTMLStyle
*
style
,
const
char
*
extext
)
{
BSTR
text
=
(
void
*
)
0xdeadbeef
;
HRESULT
hres
;
hres
=
IHTMLStyle_get_cssText
(
style
,
&
text
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_cssText failed: %08x
\n
"
,
hres
);
if
(
extext
)
ok_
(
__FILE__
,
line
)(
!
strcmp_wa
(
text
,
extext
),
"cssText = %s
\n
"
,
dbgstr_w
(
text
));
else
ok_
(
__FILE__
,
line
)(
!
text
,
"cssText = %s
\n
"
,
dbgstr_w
(
text
));
SysFreeString
(
text
);
}
static
void
test_elem_col_item
(
IHTMLElementCollection
*
col
,
LPCWSTR
n
,
const
elem_type_t
*
elem_types
,
long
len
)
{
...
...
@@ -2608,6 +2624,8 @@ static void test_default_style(IHTMLStyle *style)
test_disp
((
IUnknown
*
)
style
,
&
DIID_DispHTMLStyle
);
test_ifaces
((
IUnknown
*
)
style
,
style_iids
);
test_style_csstext
(
style
,
NULL
);
hres
=
IHTMLStyle_get_position
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_position failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"str=%s
\n
"
,
dbgstr_w
(
str
));
...
...
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