Bug 1261499 - Make nsContentUtils::AddScriptRunner return void, r=khuey

This commit is contained in:
Ben Tian
2016-05-06 16:09:03 +08:00
parent fec20f9b3f
commit d7da2fc8b4
7 changed files with 16 additions and 32 deletions

View File

@@ -1196,9 +1196,8 @@ nsTextEditorState::BindToFrame(nsTextControlFrame* aFrame)
// otherwise, inherit the content node's direction
}
if (!nsContentUtils::AddScriptRunner(
new PrepareEditorEvent(*this, content, currentValue)))
return NS_ERROR_OUT_OF_MEMORY;
nsContentUtils::AddScriptRunner(
new PrepareEditorEvent(*this, content, currentValue));
}
return NS_OK;