preliminary support for text area wrap

install text control's event listeners ahead of the editor's own default listeners.


git-svn-id: svn://10.0.0.236/trunk@44122 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
buster%netscape.com
1999-08-23 06:46:08 +00:00
parent d25319c9c2
commit d73d1687de
6 changed files with 141 additions and 9 deletions

View File

@@ -316,3 +316,23 @@ nsTextControlFrame::SetSuggestedSize(nscoord aWidth, nscoord aHeight)
return NS_OK;
}
NS_IMETHODIMP
nsTextControlFrame::GetWrapProperty(nsString &aOutValue)
{
aOutValue = "";
nsresult result = NS_CONTENT_ATTR_NOT_THERE;
nsIHTMLContent* content = nsnull;
mContent->QueryInterface(kIHTMLContentIID, (void**) &content);
if (nsnull != content)
{
nsHTMLValue value;
result = content->GetHTMLAttribute(nsHTMLAtoms::wrap, value);
if (eHTMLUnit_String == value.GetUnit())
{
value.GetStringValue(aOutValue);
}
NS_RELEASE(content);
}
return result;
}