Rewrite getClassFromElement() in a functional style.
This is part of a series of changes re-implementing (and hopefully improving upon) cleanup performed in https://crrev.com/c/1922788. The intent is to reduce the number of changes not directly related to the new feature when relanding the CL. Bug: 1027612 Change-Id: Ibbc6967e43695f348f53655e46d05a547f8bd2ba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144674Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Commit-Queue: Aran Gilman <gilmanmh@google.com> Auto-Submit: Aran Gilman <gilmanmh@google.com> Cr-Commit-Position: refs/heads/master@{#758997}
Showing
Please register or sign in to comment