Bug 3256: Add ScrollIntoView() method to form frame objects.
This commit is contained in:
@@ -100,6 +100,7 @@ public:
|
||||
virtual void Reset() {};
|
||||
|
||||
void SetFocus(PRBool aOn, PRBool aRepaint);
|
||||
void ScrollIntoView(nsIPresContext* aPresContext);
|
||||
NS_IMETHOD GetFont(nsIPresContext* aPresContext,
|
||||
nsFont& aFont);
|
||||
|
||||
@@ -276,6 +277,18 @@ nsImageControlFrame::SetFocus(PRBool aOn, PRBool aRepaint)
|
||||
}*/
|
||||
}
|
||||
|
||||
void
|
||||
nsImageControlFrame::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
|
||||
nsImageControlFrame::GetTranslatedRect(nsRect& aRect)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user