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
166f1999
Commit
166f1999
authored
Aug 01, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added implementation of put_scrollTop and put_scrollLeft.
parent
82676b99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
4 deletions
+54
-4
htmltextcont.c
dlls/mshtml/htmltextcont.c
+30
-4
nsiface.idl
dlls/mshtml/nsiface.idl
+24
-0
No files found.
dlls/mshtml/htmltextcont.c
View file @
166f1999
...
...
@@ -115,8 +115,21 @@ static HRESULT WINAPI HTMLTextContainer_get_scrollWidth(IHTMLTextContainer *ifac
static
HRESULT
WINAPI
HTMLTextContainer_put_scrollTop
(
IHTMLTextContainer
*
iface
,
long
v
)
{
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
v
);
return
E_NOTIMPL
;
nsIDOMNSHTMLElement
*
nselem
;
nsresult
nsres
;
TRACE
(
"(%p)->(%ld)
\n
"
,
This
,
v
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
This
->
element
->
nselem
,
&
IID_nsIDOMNSHTMLElement
,
(
void
**
)
&
nselem
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsIDOMNSHTMLElement_SetScrollTop
(
nselem
,
v
);
nsIDOMNSHTMLElement_Release
(
nselem
);
}
else
{
ERR
(
"Could not get nsIDOMNSHTMLElement interface: %08lx
\n
"
,
nsres
);
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTextContainer_get_scrollTop
(
IHTMLTextContainer
*
iface
,
long
*
p
)
...
...
@@ -129,8 +142,21 @@ static HRESULT WINAPI HTMLTextContainer_get_scrollTop(IHTMLTextContainer *iface,
static
HRESULT
WINAPI
HTMLTextContainer_put_scrollLeft
(
IHTMLTextContainer
*
iface
,
long
v
)
{
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
v
);
return
E_NOTIMPL
;
nsIDOMNSHTMLElement
*
nselem
;
nsresult
nsres
;
TRACE
(
"(%p)->(%ld)
\n
"
,
This
,
v
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
This
->
element
->
nselem
,
&
IID_nsIDOMNSHTMLElement
,
(
void
**
)
&
nselem
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsIDOMNSHTMLElement_SetScrollLeft
(
nselem
,
v
);
nsIDOMNSHTMLElement_Release
(
nselem
);
}
else
{
ERR
(
"Could not get nsIDOMNSHTMLElement interface: %08lx
\n
"
,
nsres
);
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTextContainer_get_scrollLeft
(
IHTMLTextContainer
*
iface
,
long
*
p
)
...
...
dlls/mshtml/nsiface.idl
View file @
166f1999
...
...
@@ -465,6 +465,30 @@ interface nsIDOMHTMLElement : nsIDOMElement
[
object,
uuid(da83b2ec-8264-4410-8496-ada3acd2ae42)
]
interface nsIDOMNSHTMLElement : nsISupports
{
nsresult GetOffsetTop(PRInt32 *aOffsetTop);
nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
nsresult GetInnerHTML(nsAString *aInnerHTML);
nsresult SetInnerHTML(const nsAString *aInnerHTML);
nsresult GetScrollTop(PRInt32 *aScrollTop);
nsresult SetScrollTop(PRInt32 aScrollTop);
nsresult GetScrollLeft(PRInt32 *aScrollLeft);
nsresult SetScrollLeft(PRInt32 aScrollLeft);
nsresult GetScrollHeight(PRInt32 *aScrollHeight);
nsresult GetScrollWidth(PRInt32 *aScrollWidth);
nsresult GetClientHeight(PRInt32 *aClientHeight);
nsresult GetClientWidth(PRInt32 *aClientWidth);
nsresult ScrollIntoView(PRBool top);
}
[
object,
uuid(a6cf9075-15b3-11d2-932e-00805f8add32)
]
interface nsIDOMDocument : nsIDOMNode
...
...
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