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

This commit is contained in:
hpradhan%hotpop.com 2003-04-22 03:38:16 +00:00
Родитель 18f0efd8d6
Коммит 2aa9cb3461
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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