Instead of passing the offset by pointer and call compute when the offset is null.
Created attachment 233555 [details] Patch It has source dependency on bug 134156, won't compile as it is.
Created attachment 233556 [details] Patch
Comment on attachment 233556 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=233556&action=review > Source/WebCore/rendering/RenderLayer.cpp:3581 > + LayoutRect boundingBox = layer->boundingBox(rootLayer, layer->offsetFromAncestor(rootLayer)); I think it would be cleaner for boundingBox to always return a local box (so remove the parameter), and for the caller to offset the result. > Source/WebCore/rendering/RenderLayer.cpp:5382 > + calculateRects(clipRectsContext, renderer().view().documentRect(), layerBounds, backgroundRect, foregroundRect, outlineRect, offsetFromAncestor(clipRectsContext.rootLayer)); Should check to see if any callers have already computed offsetFromAncestor.
Created attachment 233582 [details] Patch
Comment on attachment 233582 [details] Patch EWSing
Comment on attachment 233582 [details] Patch Clearing flags on attachment: 233582 Committed r170282: <http://trac.webkit.org/changeset/170282>
All reviewed patches have been landed. Closing bug.