Masking: We don't have intelligent algorithms, to determin the smallest size of a masked objekt to get a smaller repaintRect in SVG. ClipPath: We calculate the union of all childs of a clipPath every time, the clipPath is used by a target. This union can be cached and transformed by the targets objectBoundingbox on calling resourceBoundingBox(). This is no lost if only one target takes the clipPath resource, but will speed up the calculation if more than one object use the same resource. This also avoids multiple transformations by localToParentTransform and the follwoing mapRect call. The same algorithm can be used by masking too.
Created attachment 55508 [details] Patch
Comment on attachment 55508 [details] Patch We're certain this changed no pixel tests, correct?
(In reply to comment #2) > (From update of attachment 55508 [details]) > We're certain this changed no pixel tests, correct? I allways test with pixel tests and a tolerance of 0. No pixel changes.
Comment on attachment 55508 [details] Patch Dirk++, r=me.
Comment on attachment 55508 [details] Patch Clearing flags on attachment: 55508 Committed r59081: <http://trac.webkit.org/changeset/59081>
All reviewed patches have been landed. Closing bug.