[CSS Grid Layout] Improper repainting when grid item change their position
https://bugs.webkit.org/show_bug.cgi?id=112749

Reviewed by Ojan Vafai.

Source/WebCore:

Tests: fast/css-grid-layout/grid-element-change-columns-repaint.html
       fast/css-grid-layout/grid-element-change-rows-repaint.html
       fast/css-grid-layout/grid-item-change-column-repaint.html
       fast/css-grid-layout/grid-item-change-row-repaint.html

* rendering/RenderGrid.cpp:
(WebCore::RenderGrid::layoutGridItems):
Added a call to repaintDuringLayoutIfMoved to repaint moving grid items.

LayoutTests:

* fast/css-grid-layout/grid-element-change-columns-repaint-expected.txt: Added.
* fast/css-grid-layout/grid-element-change-columns-repaint.html: Added.
* fast/css-grid-layout/grid-element-change-rows-repaint-expected.txt: Added.
* fast/css-grid-layout/grid-element-change-rows-repaint.html: Added.
Those are added testing for the grid element's change. They were already passing due to
the LayoutRepainter in RenderGrid::layoutBlock.

* fast/css-grid-layout/grid-item-change-column-repaint-expected.txt: Added.
* fast/css-grid-layout/grid-item-change-column-repaint.html: Added.
* fast/css-grid-layout/grid-item-change-row-repaint-expected.txt: Added.
* fast/css-grid-layout/grid-item-change-row-repaint.html: Added.
New testing, was failing before this change.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
FastMalloc scavenge timer specifies an overly narrow leeway value.

Reviewed by Alexey Proskuryakov.

There's no need to allow only 1ms of leeway on a 2s timer.

* wtf/FastMalloc.cpp:
(WTF::TCMalloc_PageHeap::initializeScavenger): Bump the leeway window
to 10% of the scavenge timer.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146372 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Autosize should use documentRect height instead of scrollHeight
https://bugs.webkit.org/show_bug.cgi?id=112770

Reviewed by David Levin.

Autosizing fails to compute the correct height if the root element is very
small but the document has significant overflow.

No new tests; autosizing is not currently exposed in a testable way on Mac.

* page/FrameView.cpp:
(WebCore::FrameView::autoSizeIfEnabled):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146373 268f45cc-cd09-0410-ab3c-d52691b4dbfc