Bug 1340483 - Part 2. Expose chrome-only previewValue attribute. r=baku,heycam

MozReview-Commit-ID: BCu0vXVm6wj
This commit is contained in:
Ray Lin
2017-03-21 00:08:01 +08:00
parent 78ff382026
commit f4d11417f9
9 changed files with 89 additions and 0 deletions

View File

@@ -333,6 +333,17 @@ HTMLTextAreaElement::GetPreviewNode()
return mState.GetPreviewNode();
}
NS_IMETHODIMP_(void)
HTMLTextAreaElement::SetPreviewValue(const nsAString& aValue)
{
mState.SetPreviewText(aValue, true);
}
NS_IMETHODIMP_(void)
HTMLTextAreaElement::GetPreviewValue(nsAString& aValue)
{
mState.GetPreviewText(aValue);
}
nsresult
HTMLTextAreaElement::SetValueInternal(const nsAString& aValue,