FrameView::beginDeferredRepaints and friends store a list of repaint rects on the FrameView. This should be made container-aware.
I quickly did search on GitHub WebKit repo and searchfox.org (wubkat) and didn't find any function named 'beginDeferredRepaints'.