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
b9f9a358
Commit
b9f9a358
authored
Jul 31, 2014
by
Zhenbo Li
Committed by
Alexandre Julliard
Aug 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLStyle:: textTransform property implementation.
parent
7a768ff1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
htmlstyle.c
dlls/mshtml/htmlstyle.c
+11
-4
htmlstyle.h
dlls/mshtml/htmlstyle.h
+1
-0
style.c
dlls/mshtml/tests/style.c
+16
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
b9f9a358
...
...
@@ -172,6 +172,8 @@ static const WCHAR attrTextDecoration[] =
{
't'
,
'e'
,
'x'
,
't'
,
'-'
,
'd'
,
'e'
,
'c'
,
'o'
,
'r'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
attrTextIndent
[]
=
{
't'
,
'e'
,
'x'
,
't'
,
'-'
,
'i'
,
'n'
,
'd'
,
'e'
,
'n'
,
't'
,
0
};
static
const
WCHAR
attrTextTransform
[]
=
{
't'
,
'e'
,
'x'
,
't'
,
'-'
,
't'
,
'r'
,
'a'
,
'n'
,
's'
,
'f'
,
'o'
,
'r'
,
'm'
,
0
};
static
const
WCHAR
attrTop
[]
=
{
't'
,
'o'
,
'p'
,
0
};
static
const
WCHAR
attrVerticalAlign
[]
=
...
...
@@ -266,6 +268,7 @@ static const style_tbl_entry_t style_tbl[] = {
{
attrTextAlign
,
DISPID_IHTMLSTYLE_TEXTALIGN
},
{
attrTextDecoration
,
DISPID_IHTMLSTYLE_TEXTDECORATION
},
{
attrTextIndent
,
DISPID_IHTMLSTYLE_TEXTINDENT
},
{
attrTextTransform
,
DISPID_IHTMLSTYLE_TEXTTRANSFORM
},
{
attrTop
,
DISPID_IHTMLSTYLE_TOP
},
{
attrVerticalAlign
,
DISPID_IHTMLSTYLE_VERTICALALIGN
},
{
attrVisibility
,
DISPID_IHTMLSTYLE_VISIBILITY
},
...
...
@@ -1450,15 +1453,19 @@ static HRESULT WINAPI HTMLStyle_get_verticalAlign(IHTMLStyle *iface, VARIANT *p)
static
HRESULT
WINAPI
HTMLStyle_put_textTransform
(
IHTMLStyle
*
iface
,
BSTR
v
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
set_style_attr
(
This
,
STYLEID_TEXT_TRANSFORM
,
v
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle_get_textTransform
(
IHTMLStyle
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_style_attr
(
This
,
STYLEID_TEXT_TRANSFORM
,
p
);
}
static
HRESULT
WINAPI
HTMLStyle_put_textAlign
(
IHTMLStyle
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/htmlstyle.h
View file @
b9f9a358
...
...
@@ -101,6 +101,7 @@ typedef enum {
STYLEID_TEXT_ALIGN
,
STYLEID_TEXT_DECORATION
,
STYLEID_TEXT_INDENT
,
STYLEID_TEXT_TRANSFORM
,
STYLEID_TOP
,
STYLEID_VERTICAL_ALIGN
,
STYLEID_VISIBILITY
,
...
...
dlls/mshtml/tests/style.c
View file @
b9f9a358
...
...
@@ -1249,6 +1249,22 @@ static void test_body_style(IHTMLStyle *style)
SysFreeString
(
str
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLStyle_get_textTransform
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_textTransform failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"textTransform != NULL
\n
"
);
str
=
a2bstr
(
"lowercase"
);
hres
=
IHTMLStyle_put_textTransform
(
style
,
str
);
ok
(
hres
==
S_OK
,
"put_textTransform failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
str
=
NULL
;
hres
=
IHTMLStyle_get_textTransform
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_textTransform failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"lowercase"
),
"textTransform = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
SysFreeString
(
str
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLStyle_get_filter
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_filter failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"filter != NULL
\n
"
);
...
...
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