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
e1a553e3
Commit
e1a553e3
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_scroll[Hight|Width] implementation to IHTMLElement2.
parent
925dbb58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
30 deletions
+2
-30
htmltextcont.c
dlls/mshtml/htmltextcont.c
+2
-30
No files found.
dlls/mshtml/htmltextcont.c
View file @
e1a553e3
...
...
@@ -101,47 +101,19 @@ static HRESULT WINAPI HTMLTextContainer_createControlRange(IHTMLTextContainer *i
static
HRESULT
WINAPI
HTMLTextContainer_get_scrollHeight
(
IHTMLTextContainer
*
iface
,
long
*
p
)
{
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
nsIDOMNSHTMLElement
*
nselem
;
PRInt32
height
=
0
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMElement_QueryInterface
(
This
->
element
.
nselem
,
&
IID_nsIDOMNSHTMLElement
,
(
void
**
)
&
nselem
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsIDOMNSHTMLElement_GetScrollHeight
(
nselem
,
&
height
);
nsIDOMNSHTMLElement_Release
(
nselem
);
}
else
{
ERR
(
"Could not get nsIDOMNSHTMLElement interface: %08x
\n
"
,
nsres
);
}
*
p
=
height
;
TRACE
(
"*p = %ld
\n
"
,
*
p
);
return
S_OK
;
return
IHTMLElement2_get_scrollHeight
(
HTMLELEM2
(
&
This
->
element
),
p
);
}
static
HRESULT
WINAPI
HTMLTextContainer_get_scrollWidth
(
IHTMLTextContainer
*
iface
,
long
*
p
)
{
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
nsIDOMNSHTMLElement
*
nselem
;
PRInt32
width
=
0
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMElement_QueryInterface
(
This
->
element
.
nselem
,
&
IID_nsIDOMNSHTMLElement
,
(
void
**
)
&
nselem
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsIDOMNSHTMLElement_GetScrollWidth
(
nselem
,
&
width
);
nsIDOMNSHTMLElement_Release
(
nselem
);
}
else
{
ERR
(
"Could not get nsIDOMNSHTMLElement interface: %08x
\n
"
,
nsres
);
}
*
p
=
width
;
TRACE
(
"*p = %ld
\n
"
,
*
p
);
return
S_OK
;
return
IHTMLElement2_get_scrollWidth
(
HTMLELEM2
(
&
This
->
element
),
p
);
}
static
HRESULT
WINAPI
HTMLTextContainer_put_scrollTop
(
IHTMLTextContainer
*
iface
,
long
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