• commit-queue@webkit.org's avatar
    Correct FrameView::scrollableAreaBoundingBox() calculation in the presence of transforms · d27d8b51
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=105075
    
    Patch by Tien-Ren Chen <trchen@chromium.org> on 2013-01-14
    Reviewed by Simon Fraser.
    
    As mentioned by the FIXME comment, we need to ask the renderer for the
    absolute bounding box of a frame for correct transformation.
    This fixes the bug that iframe cannot be scrolled properly when it is
    transformed.
    
    Source/WebCore:
    
    Tests: scrollingcoordinator/non-fast-scrollable-region-scaled-iframe.html
           scrollingcoordinator/non-fast-scrollable-region-transformed-iframe.html
    
    * page/FrameView.cpp:
    (WebCore::FrameView::scrollableAreaBoundingBox):
    
    LayoutTests:
    
    * platform/mac/scrollingcoordinator/non-fast-scrollable-region-scaled-iframe-expected.png: Added.
    * platform/mac/scrollingcoordinator/non-fast-scrollable-region-scaled-iframe-expected.txt: Added.
    * platform/mac/scrollingcoordinator/non-fast-scrollable-region-transformed-iframe-expected.png: Added.
    * platform/mac/scrollingcoordinator/non-fast-scrollable-region-transformed-iframe-expected.txt: Added.
    * scrollingcoordinator/non-fast-scrollable-region-scaled-iframe-expected.png: Added.
    * scrollingcoordinator/non-fast-scrollable-region-scaled-iframe-expected.txt: Added.
    * scrollingcoordinator/non-fast-scrollable-region-scaled-iframe.html: Added.
    * scrollingcoordinator/non-fast-scrollable-region-transformed-iframe-expected.png: Added.
    * scrollingcoordinator/non-fast-scrollable-region-transformed-iframe-expected.txt: Added.
    * scrollingcoordinator/non-fast-scrollable-region-transformed-iframe.html: Added.
    * scrollingcoordinator/resources/non-fast-scrollable-region-testing.js: Added.
    (runNonFastScrollableRegionTest):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139686 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d27d8b51
non-fast-scrollable-region-transformed-iframe.html 406 Bytes