Bug 1340483 - Part 4. Update input visibility accordingly. r=heycam

MozReview-Commit-ID: 7eBhj7w4qhP
This commit is contained in:
Ray Lin
2017-03-30 17:38:59 +08:00
parent d37849aaa3
commit cdc9d749a6
8 changed files with 62 additions and 26 deletions

View File

@@ -310,9 +310,9 @@ HTMLTextAreaElement::GetPlaceholderNode()
}
NS_IMETHODIMP_(void)
HTMLTextAreaElement::UpdatePlaceholderVisibility(bool aNotify)
HTMLTextAreaElement::UpdateOverlayTextVisibility(bool aNotify)
{
mState.UpdatePlaceholderVisibility(aNotify);
mState.UpdateOverlayTextVisibility(aNotify);
}
NS_IMETHODIMP_(bool)
@@ -364,6 +364,12 @@ HTMLTextAreaElement::IsPreviewEnabled()
return mIsPreviewEnabled;
}
NS_IMETHODIMP_(bool)
HTMLTextAreaElement::GetPreviewVisibility()
{
return mState.GetPreviewVisibility();
}
nsresult
HTMLTextAreaElement::SetValueInternal(const nsAString& aValue,
uint32_t aFlags)