bug 145577: scrollHeight/scrollTop not supported on textareas r=jkeiser sr=jst

git-svn-id: svn://10.0.0.236/trunk@141572 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hpradhan%hotpop.com 2003-04-22 03:38:16 +00:00
parent 9c15c8d486
commit ba16d7dead

View File

@ -73,6 +73,7 @@
#include "nsIFrame.h"
#include "nsIScrollableFrame.h"
#include "nsIScrollableView.h"
#include "nsIScrollableViewProvider.h"
#include "nsRange.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
@ -1006,6 +1007,15 @@ nsGenericHTMLElement::GetScrollInfo(nsIScrollableView **aScrollableView,
CallQueryInterface(frame, &scrollFrame);
if (!scrollFrame) {
nsIScrollableViewProvider *scrollProvider = nsnull;
CallQueryInterface(frame, &scrollProvider);
if (scrollProvider) {
scrollProvider->GetScrollableView(presContext, aScrollableView);
if (*aScrollableView) {
return NS_OK;
}
}
if (mNodeInfo->Equals(nsHTMLAtoms::body)) {
// The scroll info for the body element should map to the scroll
// info for the nearest scrollable frame above the body element