Right now, aggregatedAttributesForAncestors merges attributes from each ancestor all the way up for each text node. We should cache the intermediate results on each ancestor along the way.
Created attachment 228900 [details] Fixes the bug
Created attachment 228908 [details] Patch for landing
Created attachment 228909 [details] Patch for landing 2
Comment on attachment 228909 [details] Patch for landing 2 Clearing flags on attachment: 228909 Committed r166981: <http://trac.webkit.org/changeset/166981>
All reviewed patches have been landed. Closing bug.