Skip to content
  • bdakin@apple.com's avatar
    WebCore: Fix for https://bugs.webkit.org/show_bug.cgi?id=47514 CSS · 3ee4d3ed
    bdakin@apple.com authored
    transforms should affect scrolling
    
    Reviewed by Dave Hyatt.
    
    This patch causes topmostPosition, lowestPosition, 
    leftmostPosition, and rightmostPosition to take transforms into 
    account.
    
    Compute the topmost/lowest/leftmost/rightmost position without 
    factoring in the block's transform until the end.
    * rendering/RenderBlock.cpp:
    (WebCore::RenderBlock::topmostPosition):
    (WebCore::RenderBlock::lowestPosition):
    (WebCore::RenderBlock::rightmostPosition):
    (WebCore::RenderBlock::leftmostPosition):
    * rendering/RenderBlock.h:
    
    transformedFrameRect() returns the frameRect() transformed to the 
    layer's transform. applyLayerTransformToRect() does the same thing 
    for the input rect.
    * rendering/RenderBox.cpp:
    (WebCore::RenderBox::applyLayerTransformToRect):
    (WebCore::RenderBox::transformedFrameRect):
    (WebCore::RenderBox::topmostPosition):
    (WebCore::RenderBox::lowestPosition):
    (WebCore::RenderBox::rightmostPosition):
    (WebCore::RenderBox::leftmostPosition):
    * rendering/RenderBox.h:
    * rendering/RenderMedia.cpp:
    (WebCore::RenderMedia::topmostPosition):
    (WebCore::RenderMedia::lowestPosition):
    (WebCore::RenderMedia::rightmostPosition):
    (WebCore::RenderMedia::leftmostPosition):
    * rendering/RenderMedia.h:
    * rendering/RenderTableSection.cpp:
    (WebCore::RenderTableSection::topmostPosition):
    (WebCore::RenderTableSection::lowestPosition):
    (WebCore::RenderTableSection::rightmostPosition):
    (WebCore::RenderTableSection::leftmostPosition):
    * rendering/RenderTableSection.h:
    
    LayoutTests: New tests and updated results for https://bugs.webkit.org/show_bug.cgi?id=47514 
    CSS transforms should affect scrolling
    
    Reviewed by Dave Hyatt.
    
    New tests.
    * fast/transforms/rotated-transform-affects-scrolling-1.html: Added.
    * fast/transforms/rotated-transform-affects-scrolling-2.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70170 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3ee4d3ed