Summary: | iframe fails to scroll in composited page | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Vangelis Kokkevis <vangelis> | ||||||||
Component: | Layout and Rendering | Assignee: | Adrienne Walker <enne> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | cmarrin, enne, simon.fraser, webkit.review.bot | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Vangelis Kokkevis
2011-11-17 17:30:48 PST
Created attachment 118860 [details]
Patch
Comment on attachment 118860 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=118860&action=review > Source/WebCore/page/FrameView.cpp:1548 > + LayoutRect rect(frameRenderer->borderLeft() + frameRenderer->paddingLeft(), > + frameRenderer->borderTop() + frameRenderer->paddingTop(), > + frameView->visibleWidth(), frameView->visibleHeight()); > + frameRenderer->repaintRectangle(rect); It's not clear that this rect math works correctly if there's a CSS transform between this frame view and the one doing the repainting. Created attachment 118915 [details]
Add a transform to the test
Comment on attachment 118915 [details]
Add a transform to the test
Er, ignore this patch. Sorry.
Comment on attachment 118915 [details] Add a transform to the test View in context: https://bugs.webkit.org/attachment.cgi?id=118915&action=review > Source/WebCore/page/FrameView.cpp:1550 > + FloatPoint absoluteLocation = thisOwnerRenderer->localToAbsolute(rect.location(), false, true); > + rect.setLocation(roundedIntPoint(frameRenderer->absoluteToLocal(absoluteLocation, false, true))); I think you should use Widget::convertToContainingView() here. Created attachment 118922 [details]
Greatly simplify
(In reply to comment #6) > Created an attachment (id=118922) [details] > Greatly simplify It looks like repaintRectangle on the inner iframe renderer ends up converting to the right space. That seems simpler than doing the conversion manually. Comment on attachment 118922 [details] Greatly simplify Clearing flags on attachment: 118922 Committed r102649: <http://trac.webkit.org/changeset/102649> All reviewed patches have been landed. Closing bug. |