Bug 3256: Add ScrollIntoView() method to form frame objects.

This commit is contained in:
pollmann@netscape.com
1999-08-21 00:09:24 +00:00
parent 34c2adc944
commit 9e36fdb2c2
22 changed files with 196 additions and 24 deletions

View File

@@ -270,6 +270,18 @@ nsHTMLButtonControlFrame::SetFocus(PRBool aOn, PRBool aRepaint)
{
}
void
nsHTMLButtonControlFrame::ScrollIntoView(nsIPresContext* aPresContext)
{
if (aPresContext) {
nsCOMPtr<nsIPresShell> presShell;
aPresContext->GetShell(getter_AddRefs(presShell));
presShell->ScrollFrameIntoView(this,
NS_PRESSHELL_SCROLL_ANYWHERE,NS_PRESSHELL_SCROLL_ANYWHERE);
}
}
void
nsHTMLButtonControlFrame::GetTranslatedRect(nsRect& aRect)
{