More efficient code for mapping event names and attribute names.

This changes repeated code to a loop and cuts
HTMLElement::eventNameForAttributeName from 9 KB to 3 KB.

clang, x64:

Total change: -5952 bytes
=========================
  1 shrunk, for a net change of -5952 bytes (9338 bytes before, 3386 bytes after) across 1 sources

BUG=

Review URL: https://codereview.chromium.org/594413003

git-svn-id: svn://svn.chromium.org/blink/trunk@182820 bbb929c8-8fbe-4397-9dbb-9b2b20218538
1 file changed
tree: db14673854be02991b541d13240915f21460dcb4
  1. third_party/