Try moving the top layer flag from ElementRareData to NodeFlags. It may fix the perf regression described in bug 106726, and has been suggested earlier, e.g., https://bugs.webkit.org/show_bug.cgi?id=84796#c31 Moving it to NodeFlags also simplifies some of the code and makes it no longer necessary to allocate rare data.
Created attachment 183951 [details] Patch
Comment on attachment 183951 [details] Patch Clearing flags on attachment: 183951 Committed r140411: <http://trac.webkit.org/changeset/140411>
All reviewed patches have been landed. Closing bug.
Doesn't look like it fixed the performance regression. :(