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
9d22dc47
Commit
9d22dc47
authored
Sep 10, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLCSSStyleDeclaration::styleFloat property implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b34362f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
htmlstyle.c
dlls/mshtml/htmlstyle.c
+4
-4
style.c
dlls/mshtml/tests/style.c
+17
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
9d22dc47
...
...
@@ -5567,15 +5567,15 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration_get_height(IHTMLCSSStyleDeclaratio
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration_put_styleFloat
(
IHTMLCSSStyleDeclaration
*
iface
,
BSTR
v
)
{
HTMLStyle
*
This
=
impl_from_IHTMLCSSStyleDeclaration
(
iface
);
FIXM
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
set_style_property
(
This
,
STYLEID_FLOAT
,
v
)
;
}
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration_get_styleFloat
(
IHTMLCSSStyleDeclaration
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
impl_from_IHTMLCSSStyleDeclaration
(
iface
);
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_style_property
(
This
,
STYLEID_FLOAT
,
p
)
;
}
static
HRESULT
WINAPI
HTMLCSSStyleDeclaration_put_clear
(
IHTMLCSSStyleDeclaration
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/style.c
View file @
9d22dc47
...
...
@@ -2897,6 +2897,12 @@ static void test_body_style(IHTMLStyle *style)
str
=
NULL
;
hres
=
IHTMLCSSStyleDeclaration_get_cssFloat
(
css_style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_cssFloat failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"left"
),
"cssFloat = %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
str
=
NULL
;
hres
=
IHTMLCSSStyleDeclaration_get_styleFloat
(
css_style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_styleFloat failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"left"
),
"styleFloat = %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
...
...
@@ -2910,6 +2916,17 @@ static void test_body_style(IHTMLStyle *style)
ok
(
hres
==
S_OK
,
"get_cssFloat failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"right"
),
"styleFloat = %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
str
=
a2bstr
(
"left"
);
hres
=
IHTMLCSSStyleDeclaration_put_styleFloat
(
css_style
,
str
);
ok
(
hres
==
S_OK
,
"put_styleFloat failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
str
=
NULL
;
hres
=
IHTMLCSSStyleDeclaration_get_cssFloat
(
css_style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_cssFloat failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"left"
),
"styleFloat = %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
}
hres
=
IHTMLStyle_QueryInterface
(
style
,
&
IID_IHTMLStyle2
,
(
void
**
)
&
style2
);
...
...
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