b=767710 move current motion calculation into InitSmoothScroll() r=roc

--HG--
extra : transplant_source : %E2%DCQu%13RdE%E9%3A%B3%B5L%21%8A3%3C%5D4%3F
b=767710 refactor AsyncScroll duration API so duration can be evaluated before resetting r=roc

--HG--
extra : transplant_source : %17Wc%17%5B%CF%A9n%C6%0BE%3Ez%21%CD%C6Q%20%10%26
b=767710 don't let additional events with the same destination restart smooth scrolling r=mstange

--HG--
extra : transplant_source : _%BA%CE%F1A%B7%40N%14VMZ%1D%2C%98Lg%40%F7%AF
backout b1096811620f (Bug 847279) for android M-8 orange
backout 8e0af273404e (Bug 847279) for android M-8 orange
Bug 861658 - Make Android Sync styles use Gecko themes. r=nalexander

This avoids using "@android:style/TextAppearance" or
"@android:style/{TextView,Button,EditText}" and avoids a crash on
pre-Gingerbread devices.
Bug 852850 - Add the ability for the reftest framework to test whether an element is painted in invalidation tests. r=roc
Bug 852850 - Add a reftest to make sure images hoisted into their own layers aren't painted. r=joe
Bug 837335 - Don't build an nsDisplayTransform for nsSVGPathGeometryFrame if the transform is only a translation. r=jwatt