Skip to content
  • tony@chromium.org's avatar
    Setting width of a flexitem causes the adjacent flex item to be displayed poorly. · 3df826a7
    tony@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=99925
    
    Reviewed by Ojan Vafai.
    
    Source/WebCore:
    
    Make sure that we always repaint when moving a child. This is similar to what RenderDeprecatedFlexibleBox does.
    
    Test: css3/flexbox/repaint-during-resize-no-flex.html
    
    * rendering/RenderFlexibleBox.cpp:
    (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): Move logic for repaining into the helper method
    for setting the location of a child.
    (WebCore::RenderFlexibleBox::layoutColumnReverse): Remove code for repaint since it's now in setFlowAwareLocationForChild.
    (WebCore::RenderFlexibleBox::adjustAlignmentForChild): Remove code for repaint since it's now in setFlowAwareLocationForChild.
    
    LayoutTests:
    
    Add a repaint test.  The render tree should be cross platform, but due to
    slight color differences in the grey overlay, the png can't be shared.
    
    * css3/flexbox/repaint-during-resize-no-flex-expected.txt: Added.
    * css3/flexbox/repaint-during-resize-no-flex.html: Added.
    * platform/chromium-linux/css3/flexbox/repaint-during-resize-no-flex-expected.png: Added.
    * platform/chromium/TestExpectations:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3df826a7