Improve opacity performance by clipping to bbox before starting transparency layer Calling beginTransparencyLayer() is slow, because it results in creating a new context the size of the current clip region. We can improve this performance by reducing the size of the current clip region to the smallest required size. This patch improves opacity performance in SVG.
Created attachment 10921 [details] Pathological opacity test case
Created attachment 10922 [details] improve opacity performance
Comment on attachment 10922 [details] improve opacity performance r=me
Created attachment 10923 [details] Improved test case w/ timing information (click while beach-balling) Pre-patch numbers are around 8000 on my machine. Post-patch, around 1500.
This patch was landed in r16802.