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
985115d8
Commit
985115d8
authored
Jul 28, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Forward IHTMLTextContainer::get_scrollTop to IHTMLElement2.
parent
4d89c62e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
htmltextcont.c
dlls/mshtml/htmltextcont.c
+4
-2
dom.c
dlls/mshtml/tests/dom.c
+10
-1
No files found.
dlls/mshtml/htmltextcont.c
View file @
985115d8
...
...
@@ -128,8 +128,10 @@ static HRESULT WINAPI HTMLTextContainer_put_scrollTop(IHTMLTextContainer *iface,
static
HRESULT
WINAPI
HTMLTextContainer_get_scrollTop
(
IHTMLTextContainer
*
iface
,
long
*
p
)
{
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
IHTMLElement2_get_scrollTop
(
HTMLELEM2
(
&
This
->
element
),
p
);
}
static
HRESULT
WINAPI
HTMLTextContainer_put_scrollLeft
(
IHTMLTextContainer
*
iface
,
long
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
985115d8
...
...
@@ -1018,13 +1018,22 @@ static long _elem_get_scroll_width(unsigned line, IUnknown *unk)
static
long
_elem_get_scroll_top
(
unsigned
line
,
IUnknown
*
unk
)
{
IHTMLElement2
*
elem
=
_get_elem2_iface
(
line
,
unk
);
long
l
=
-
1
;
IHTMLTextContainer
*
txtcont
;
long
l
=
-
1
,
l2
=
-
1
;
HRESULT
hres
;
hres
=
IHTMLElement2_get_scrollTop
(
elem
,
&
l
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_scrollTop failed: %08x
\n
"
,
hres
);
IHTMLElement2_Release
(
elem
);
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IHTMLTextContainer
,
(
void
**
)
&
txtcont
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"Could not get IHTMLTextContainer: %08x
\n
"
,
hres
);
hres
=
IHTMLTextContainer_get_scrollTop
(
txtcont
,
&
l2
);
IHTMLTextContainer_Release
(
txtcont
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"IHTMLTextContainer::get_scrollTop failed: %ld
\n
"
,
l2
);
ok_
(
__FILE__
,
line
)
(
l
==
l2
,
"unexpected top %ld, expected %ld
\n
"
,
l2
,
l
);
return
l
;
}
...
...
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