Bug 935008 - Partial backout of effddcf29fa7 (bug 922942) for SVG perf regressions.