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
cfcc38a4
Commit
cfcc38a4
authored
Feb 08, 2009
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLStyle_get_paddingLeft.
parent
74ac0d30
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+12
-2
dom.c
dlls/mshtml/tests/dom.c
+18
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
cfcc38a4
...
...
@@ -1253,8 +1253,18 @@ static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
static
HRESULT
WINAPI
HTMLStyle_get_paddingLeft
(
IHTMLStyle
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
BSTR
ret
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
hres
=
get_style_attr
(
This
,
STYLEID_PADDING_LEFT
,
&
ret
);
if
(
FAILED
(
hres
))
return
hres
;
V_VT
(
p
)
=
VT_BSTR
;
V_BSTR
(
p
)
=
ret
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLStyle_put_padding
(
IHTMLStyle
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
cfcc38a4
...
...
@@ -2413,6 +2413,7 @@ static void test_default_style(IHTMLStyle *style)
float
f
;
BSTR
sOverflowDefault
;
BSTR
sDefault
;
VARIANT
vDefault
;
test_disp
((
IUnknown
*
)
style
,
&
DIID_DispHTMLStyle
);
test_ifaces
((
IUnknown
*
)
style
,
style_iids
);
...
...
@@ -2988,6 +2989,23 @@ static void test_default_style(IHTMLStyle *style)
ok
(
!
V_BSTR
(
&
v
),
"str=%s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
/* PaddingLeft */
hres
=
IHTMLStyle_get_paddingLeft
(
style
,
&
vDefault
);
ok
(
hres
==
S_OK
,
"get_paddingLeft: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"10"
);
hres
=
IHTMLStyle_put_paddingLeft
(
style
,
v
);
ok
(
hres
==
S_OK
,
"get_paddingLeft: %08x
\n
"
,
hres
);
VariantClear
(
&
v
);
hres
=
IHTMLStyle_get_paddingLeft
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_paddingLeft: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"10px"
),
"expecte 10 = %s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
v
)));
hres
=
IHTMLStyle_put_paddingLeft
(
style
,
vDefault
);
ok
(
hres
==
S_OK
,
"get_paddingLeft: %08x
\n
"
,
hres
);
hres
=
IHTMLStyle_QueryInterface
(
style
,
&
IID_IHTMLStyle2
,
(
void
**
)
&
style2
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLStyle2 iface: %08x
\n
"
,
hres
);
if
(
SUCCEEDED
(
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