The Network Timeline graph code has a couple of problems. - It defines a few global functions that should be nested or hanging off another object/prototype. - It recomputes the segment percentages twice, once for the main pill and another time for the reflection. - Sometimes the percentages will round down so the total is below 100%. (We already account for a total greater than 100%.) - The pill shadow is drawn with a stoke on a pixel boundary, to achieve a blurry line. We should use the canvas shadow drawing properties.
Created attachment 17434 [details] Patch
This patch also removes un-needed save/restore calls.
Comment on attachment 17434 [details] Patch r=me
Landed in r27943. http://trac.webkit.org/projects/webkit/changeset/27943