The URL attached URL is a table of 22k rows. Each row has an anchor (a link to the source line for easy copyiing and pasting). When profiling the page, I found out that RenderStyle::visitedColorDependentColor is a hot function accounting for 10% to 15% of the total time. We are calling it too often but this bug is about optimizing the function itself. Patch forthcoming.
Created attachment 97608 [details] Proposed fix: refactor the logic of RenderStyle::visitedDependentColor
The commit-queue encountered the following flaky tests while processing attachment 97608 [details]: http/tests/local/link-stylesheet-load-order.html bug 62878 (author: koivisto@iki.fi) The commit-queue is continuing to process your patch.
Comment on attachment 97608 [details] Proposed fix: refactor the logic of RenderStyle::visitedDependentColor Clearing flags on attachment: 97608 Committed r89142: <http://trac.webkit.org/changeset/89142>
All reviewed patches have been landed. Closing bug.