Skip to content
  • mitz@apple.com's avatar
    WebCore: · d9462a52
    mitz@apple.com authored
            Reviewed by Darin Adler.
    
            - fix https://bugs.webkit.org/show_bug.cgi?id=15129
              <rdar://problem/4644824> adding a new line with DOM does unnecessary additional repaint
    
            Covered by fast/repaint/4776765.html
    
            * rendering/RenderBlock.cpp:
            (WebCore::RenderBlock::layoutBlock): Avoid repainting this object if it
            did not have layout in the beginning.
            (WebCore::RenderBlock::layoutBlockChildren): If a child did not have
            layout in the beginning, repaint it in its new position, to compensate
            for the above (regardless of whether it "moved").
            * rendering/RenderObject.cpp:
            (WebCore::RenderObject::checkForRepaintDuringLayout): Added a comment
            about generalizing this fix in the future.
    
    LayoutTests:
    
            Reviewed by Darin Adler.
    
            - updated results for https://bugs.webkit.org/show_bug.cgi?id=15129
              <rdar://problem/4644824> adding a new line with DOM does unnecessary additional repaint
    
            * platform/mac/fast/repaint/4776765-expected.checksum:
            * platform/mac/fast/repaint/4776765-expected.png:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d9462a52