mozilla-b2g/gaia — pull request #11413 by Protonk (2013-08-07 23:07:31+00:00)
Title: Refactor rendering methods for Analog clock

1. Simplifies computation of angles for `setTransform`. Fractional seconds, minutes, hours are passed to `setTransform` which computes the resultant angle.
2. Removes extraneous SVG attributes, including `dur=0.001s`, which does not materially impact the animation (as no interpolation will occur in a time range shorter than the page repaint.
3. Removes checks against repainting clocks, which didn't seem to be live code. May close [Bug 817993](https://bugzilla.mozilla.org/show_bug.cgi?id=817993).
4. Caches element selection and moves animated element creation out of the update code.