Author: stippi Date: Fri Apr 2 17:11:48 2010 New Revision: 366 URL: http://mmlr.dyndns.org/changeset/366 Log: For scrolling, use the already provided clipRect to further clip the scrolled region. This fixes sub-frames damaging parent-frames when scrolling them, which was revealed when switching to other tabs and back, which then exposed garbled parts of the off-screen bitmap. Modified: webkit/trunk/WebKit/haiku/API/WebPage.cpp Modified: webkit/trunk/WebKit/haiku/API/WebPage.cpp ============================================================================== --- webkit/trunk/WebKit/haiku/API/WebPage.cpp Fri Apr 2 16:25:51 2010 (r365) +++ webkit/trunk/WebKit/haiku/API/WebPage.cpp Fri Apr 2 17:11:48 2010 (r366) @@ -684,6 +684,8 @@ fWebView->UnlockLooper(); BRect clip = offscreenView->Bounds(); + if (clipRect.IsValid()) + clip = clip & clipRect; BRect rectAtSrc = rectToScroll; BRect rectAtDst = rectAtSrc.OffsetByCopy(xOffset, yOffset); BRegion repaintRegion(rectAtSrc);