It is common to traverse through a subtree looking for elements of specific type and then casting to the type. This pattern can be generalized.
Created attachment 209383 [details] patch
Comment on attachment 209383 [details] patch Attachment 209383 [details] did not pass qt-ews (qt): Output: http://webkit-queues.appspot.com/results/1546032
Comment on attachment 209383 [details] patch Attachment 209383 [details] did not pass qt-wk2-ews (qt-wk2): Output: http://webkit-queues.appspot.com/results/1543084
Comment on attachment 209383 [details] patch Attachment 209383 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/1527350
Created attachment 209390 [details] another
Created attachment 209398 [details] yet another
Created attachment 209403 [details] yet yet another
Comment on attachment 209403 [details] yet yet another Attachment 209403 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/1555063 New failing tests: fast/parser/style-in-create-contextual-fragment-head.html fast/workers/termination-with-port-messages.html fast/parser/style-in-create-contextual-fragment.html
Created attachment 209411 [details] Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-10 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.4
Created attachment 209440 [details] more
Comment on attachment 209440 [details] more r=me We really should auto-generate the isFooElement() helpers.
https://trac.webkit.org/r154481