fixes bug 175896 "crash when selecting data overflowing vertically in a textarea having the overflow = hidden property [@ nsSelection::GetFrameForNodeOffset ]" r+sr+a=dbaron

This commit is contained in:
darin@meer.net
2003-08-20 20:15:34 +00:00
parent 4ce8992f62
commit a781bd2ca2
2 changed files with 2 additions and 2 deletions

View File

@@ -1717,7 +1717,7 @@ nsTextControlFrame::CreateAnonymousContent(nsIPresContext* aPresContext,
if (disp->mOverflow == NS_STYLE_OVERFLOW_SCROLL)
divStr += NS_LITERAL_STRING("overflow:scroll;");
else if (disp->mOverflow == NS_STYLE_OVERFLOW_HIDDEN)
divStr += NS_LITERAL_STRING("overflow:hidden;");
divStr += NS_LITERAL_STRING("overflow:-moz-scrollbars-none;");
else divStr += NS_LITERAL_STRING("overflow:auto;");
rv = divContent->SetAttr(kNameSpaceID_None,nsHTMLAtoms::style, divStr, PR_FALSE);
}