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

@@ -2873,11 +2873,11 @@ HTMLInputElement::GetPlaceholderNode()
}
NS_IMETHODIMP_(void)
HTMLInputElement::UpdatePlaceholderVisibility(bool aNotify)
HTMLInputElement::UpdateOverlayTextVisibility(bool aNotify)
{
nsTextEditorState* state = GetEditorState();
if (state) {
state->UpdatePlaceholderVisibility(aNotify);
state->UpdateOverlayTextVisibility(aNotify);
}
}
@@ -2949,6 +2949,17 @@ HTMLInputElement::IsPreviewEnabled()
return mIsPreviewEnabled;
}
NS_IMETHODIMP_(bool)
HTMLInputElement::GetPreviewVisibility()
{
nsTextEditorState* state = GetEditorState();
if (!state) {
return false;
}
return state->GetPreviewVisibility();
}
void
HTMLInputElement::GetDisplayFileName(nsAString& aValue) const
{