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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user