Bug 1340483 - Part 4. Update input visibility accordingly. r=heycam
MozReview-Commit-ID: 7eBhj7w4qhP
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user