-
simon.fraser@apple.com authored
Reviewed by Dan Bernstein. ASSERTION FAILED: !repaintContainer || repaintContainer == this https://bugs.webkit.org/show_bug.cgi?id=29755 Generalize the fix for this bug to account for cases where there may be multiple containing blocks between the repaint container, and the container of the element being repainted. Test: compositing/repaint/opacity-between-absolute2.html * rendering/RenderBox.cpp: (WebCore::RenderBox::mapLocalToContainer): Call offsetFromAncestorContainer() to get the correct offset. (WebCore::RenderBox::computeRectForRepaint): Ditto * rendering/RenderInline.cpp: (WebCore::RenderInline::computeRectForRepaint): Ditto. * rendering/RenderObject.h: * rendering/RenderObject.cpp: (WebCore::RenderObject::offsetFromAncestorContainer): New method that computes an offset from some object in the ancestor container() chain. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
195d0d67