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
45eba140
Commit
45eba140
authored
Jun 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLStyle::[get|put]_width implementation.
parent
4690d6d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
3 deletions
+37
-3
htmlstyle.c
dlls/mshtml/htmlstyle.c
+18
-3
dom.c
dlls/mshtml/tests/dom.c
+19
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
45eba140
...
@@ -73,6 +73,8 @@ static const WCHAR attrTextDecoration[] =
...
@@ -73,6 +73,8 @@ static const WCHAR attrTextDecoration[] =
{
't'
,
'e'
,
'x'
,
't'
,
'-'
,
'd'
,
'e'
,
'c'
,
'o'
,
'r'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
{
't'
,
'e'
,
'x'
,
't'
,
'-'
,
'd'
,
'e'
,
'c'
,
'o'
,
'r'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
attrVisibility
[]
=
static
const
WCHAR
attrVisibility
[]
=
{
'v'
,
'i'
,
's'
,
'i'
,
'b'
,
'i'
,
'l'
,
'i'
,
't'
,
'y'
,
0
};
{
'v'
,
'i'
,
's'
,
'i'
,
'b'
,
'i'
,
'l'
,
'i'
,
't'
,
'y'
,
0
};
static
const
WCHAR
attrWidth
[]
=
{
'w'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
valLineThrough
[]
=
static
const
WCHAR
valLineThrough
[]
=
{
'l'
,
'i'
,
'n'
,
'e'
,
'-'
,
't'
,
'h'
,
'r'
,
'o'
,
'u'
,
'g'
,
'h'
,
0
};
{
'l'
,
'i'
,
'n'
,
'e'
,
'-'
,
't'
,
'h'
,
'r'
,
'o'
,
'u'
,
'g'
,
'h'
,
0
};
...
@@ -1237,15 +1239,28 @@ static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
...
@@ -1237,15 +1239,28 @@ static HRESULT WINAPI HTMLStyle_get_borderLeftStyle(IHTMLStyle *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLStyle_put_width
(
IHTMLStyle
*
iface
,
VARIANT
v
)
static
HRESULT
WINAPI
HTMLStyle_put_width
(
IHTMLStyle
*
iface
,
VARIANT
v
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
TRACE
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
switch
(
V_VT
(
&
v
))
{
case
VT_BSTR
:
TRACE
(
"%s
\n
"
,
debugstr_w
(
V_BSTR
(
&
v
)));
return
set_style_attr
(
This
,
attrWidth
,
V_BSTR
(
&
v
),
0
);
default:
FIXME
(
"unsupported vt %d
\n
"
,
V_VT
(
&
v
));
}
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
HTMLStyle_get_width
(
IHTMLStyle
*
iface
,
VARIANT
*
p
)
static
HRESULT
WINAPI
HTMLStyle_get_width
(
IHTMLStyle
*
iface
,
VARIANT
*
p
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
V_VT
(
p
)
=
VT_BSTR
;
return
get_style_attr
(
This
,
attrWidth
,
&
V_BSTR
(
p
));
}
}
static
HRESULT
WINAPI
HTMLStyle_put_height
(
IHTMLStyle
*
iface
,
VARIANT
v
)
static
HRESULT
WINAPI
HTMLStyle_put_height
(
IHTMLStyle
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
45eba140
...
@@ -1817,6 +1817,25 @@ static void test_default_style(IHTMLStyle *style)
...
@@ -1817,6 +1817,25 @@ static void test_default_style(IHTMLStyle *style)
hres
=
IHTMLStyle_get_textDecorationLineThrough
(
style
,
&
b
);
hres
=
IHTMLStyle_get_textDecorationLineThrough
(
style
,
&
b
);
ok
(
hres
==
S_OK
,
"get_textDecorationLineThrough failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"get_textDecorationLineThrough failed: %08x
\n
"
,
hres
);
ok
(
b
==
VARIANT_FALSE
,
"textDecorationLineThrough = %x
\n
"
,
b
);
ok
(
b
==
VARIANT_FALSE
,
"textDecorationLineThrough = %x
\n
"
,
b
);
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLStyle_get_width
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_width failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(v)=%d
\n
"
,
V_VT
(
&
v
));
ok
(
!
V_BSTR
(
&
v
),
"V_BSTR(v)=%p
\n
"
,
V_BSTR
(
&
v
));
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"auto"
);
hres
=
IHTMLStyle_put_width
(
style
,
v
);
ok
(
hres
==
S_OK
,
"put_width failed: %08x
\n
"
,
hres
);
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLStyle_get_width
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_width failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(v)=%d
\n
"
,
V_VT
(
&
v
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"auto"
),
"V_BSTR(v)=%s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
}
}
static
void
test_default_selection
(
IHTMLDocument2
*
doc
)
static
void
test_default_selection
(
IHTMLDocument2
*
doc
)
...
...
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