Optimize nodeHasRole() and move to Element class.
<rdar://problem/91857547>
Created attachment 457765 [details] Patch
Created attachment 457779 [details] Patch
Committed r292963 (249728@main): <https://commits.webkit.org/249728@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 457779 [details].