We noticed that convertToLayerCoords() was taking some time in some rendering tests. It's bad to call this during painting (because it walks all the way up to the root, so O(N^2)), yet we do so in a least two places when painting layers: * RenderLayer::paintLayerContents() calls calculateRects() which calls convertToLayerCoords() to compute layerBounds * intersectsDamageRect() calls boundingBox() which uses convertToLayerCoords() * performOverlapTests() calls boundingBox() which uses convertToLayerCoords() There may be more.