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
c7da163b
Commit
c7da163b
authored
Feb 25, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Reimplement IHTMLStyle::get_backgroundPositionY using background-position property.
parent
4cc35171
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
htmlstyle.c
dlls/mshtml/htmlstyle.c
+28
-1
No files found.
dlls/mshtml/htmlstyle.c
View file @
c7da163b
...
...
@@ -1136,8 +1136,35 @@ static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIA
static
HRESULT
WINAPI
HTMLStyle_get_backgroundPositionY
(
IHTMLStyle
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
nsAString
pos_str
;
BSTR
ret
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_BACKGROUND_POSITION_Y
,
p
,
0
);
nsAString_Init
(
&
pos_str
,
NULL
);
hres
=
get_nsstyle_attr_nsval
(
This
->
nsstyle
,
STYLEID_BACKGROUND_POSITION
,
&
pos_str
);
if
(
SUCCEEDED
(
hres
))
{
const
PRUnichar
*
pos
,
*
posy
;
nsAString_GetData
(
&
pos_str
,
&
pos
);
posy
=
strchrW
(
pos
,
' '
);
if
(
posy
)
{
ret
=
SysAllocString
(
posy
+
1
);
if
(
!
ret
)
hres
=
E_OUTOFMEMORY
;
}
else
{
ret
=
NULL
;
}
}
nsAString_Finish
(
&
pos_str
);
if
(
FAILED
(
hres
))
return
hres
;
TRACE
(
"returning %s
\n
"
,
debugstr_w
(
ret
));
V_VT
(
p
)
=
VT_BSTR
;
V_BSTR
(
p
)
=
ret
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLStyle_put_wordSpacing
(
IHTMLStyle
*
iface
,
VARIANT
v
)
...
...
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