Split HTMLParserScriptRunner::ExecutePendingScriptAndDispatchEvent

Before this CL, ExecutePendingScriptAndDispatchEvent() implements
two different spec concept depending on its two call sites, and
ScriptStreamer::Type parameter is used just to distinguish the
two call sites.

This CL splits the method into two (one for each call site),
to remove unnecessary dependency to ScriptStreamer::Type and
make spec correspondence clearer.

Bug: 865098, 686281
Change-Id: I2ddb10ebe4c20861121d42d11d4a83cb349c3369
Reviewed-on: https://chromium-review.googlesource.com/1144462
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577316}
2 files changed