Bug 3256: Add ScrollIntoView() method to form frame objects.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user