Bug 96584 - Logic to not composite fixed elements outside the viewport is wrong
Summary: Logic to not composite fixed elements outside the viewport is wrong
Status: RESOLVED DUPLICATE of bug 98144
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Xianzhu Wang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-12 17:49 PDT by Simon Fraser (smfr)
Modified: 2012-10-02 08:53 PDT (History)
3 users (show)

See Also:


Attachments
Testcase (1.12 KB, text/html)
2012-09-12 17:49 PDT, Simon Fraser (smfr)
no flags Details
A working test case (1.20 KB, text/html)
2012-09-13 15:36 PDT, Xianzhu Wang
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2012-09-12 17:49:22 PDT
Created attachment 163746 [details]
Testcase

RenderLayerCompositor::requiresCompositingForPosition() has:

    FrameView* frameView = m_renderView->frameView();
    if (frameView && !layer->absoluteBoundingBox().intersects(IntRect(IntPoint(frameView->scrollOffsetForFixedPosition()), frameView->layoutSize())))
        return false;

This is incorrect, since the fixed element may have abs pos children that lie outside its bounds, but they can be visible in the viewport.
Comment 1 Xianzhu Wang 2012-09-13 15:36:16 PDT
Created attachment 163983 [details]
A working test case
Comment 2 Xianzhu Wang 2012-10-02 08:53:29 PDT

*** This bug has been marked as a duplicate of bug 98144 ***