Bug 1300996 - Part 2: Show preview text on and highlight the fields that would be filled. r=MattN, lchang

MozReview-Commit-ID: DMgVhz2lvZ1
This commit is contained in:
Ray Lin
2017-04-24 10:55:29 +08:00
parent 1f98db0895
commit 2ac740e5f5
7 changed files with 112 additions and 24 deletions

View File

@@ -2817,9 +2817,6 @@ nsTextEditorState::UpdatePlaceholderText(bool aNotify)
void
nsTextEditorState::SetPreviewText(const nsAString& aValue, bool aNotify)
{
MOZ_ASSERT(mPreviewDiv, "This function should not be called if "
"mPreviewDiv isn't set");
// If we don't have a preview div, there's nothing to do.
if (!mPreviewDiv)
return;