Changeset 146371 in webkit
- Timestamp:
- Mar 20, 2013, 11:50:01 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css-grid-layout/grid-element-change-columns-repaint-expected.txt (added)
-
LayoutTests/fast/css-grid-layout/grid-element-change-columns-repaint.html (added)
-
LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint-expected.txt (added)
-
LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint.html (added)
-
LayoutTests/fast/css-grid-layout/grid-item-change-column-repaint-expected.txt (added)
-
LayoutTests/fast/css-grid-layout/grid-item-change-column-repaint.html (added)
-
LayoutTests/fast/css-grid-layout/grid-item-change-row-repaint-expected.txt (added)
-
LayoutTests/fast/css-grid-layout/grid-item-change-row-repaint.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderGrid.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r146361 r146371 1 2013-03-20 Julien Chaffraix <jchaffraix@webkit.org> 2 3 [CSS Grid Layout] Improper repainting when grid item change their position 4 https://bugs.webkit.org/show_bug.cgi?id=112749 5 6 Reviewed by Ojan Vafai. 7 8 * fast/css-grid-layout/grid-element-change-columns-repaint-expected.txt: Added. 9 * fast/css-grid-layout/grid-element-change-columns-repaint.html: Added. 10 * fast/css-grid-layout/grid-element-change-rows-repaint-expected.txt: Added. 11 * fast/css-grid-layout/grid-element-change-rows-repaint.html: Added. 12 Those are added testing for the grid element's change. They were already passing due to 13 the LayoutRepainter in RenderGrid::layoutBlock. 14 15 * fast/css-grid-layout/grid-item-change-column-repaint-expected.txt: Added. 16 * fast/css-grid-layout/grid-item-change-column-repaint.html: Added. 17 * fast/css-grid-layout/grid-item-change-row-repaint-expected.txt: Added. 18 * fast/css-grid-layout/grid-item-change-row-repaint.html: Added. 19 New testing, was failing before this change. 20 1 21 2013-03-20 Rouslan Solomakhin <rouslan@chromium.org> 2 22 -
trunk/Source/WebCore/ChangeLog
r146366 r146371 1 2013-03-20 Julien Chaffraix <jchaffraix@webkit.org> 2 3 [CSS Grid Layout] Improper repainting when grid item change their position 4 https://bugs.webkit.org/show_bug.cgi?id=112749 5 6 Reviewed by Ojan Vafai. 7 8 Tests: fast/css-grid-layout/grid-element-change-columns-repaint.html 9 fast/css-grid-layout/grid-element-change-rows-repaint.html 10 fast/css-grid-layout/grid-item-change-column-repaint.html 11 fast/css-grid-layout/grid-item-change-row-repaint.html 12 13 * rendering/RenderGrid.cpp: 14 (WebCore::RenderGrid::layoutGridItems): 15 Added a call to repaintDuringLayoutIfMoved to repaint moving grid items. 16 1 17 2013-03-20 Arvid Nilsson <anilsson@rim.com> 2 18 -
trunk/Source/WebCore/rendering/RenderGrid.cpp
r145840 r146371 664 664 child->setOverrideContainingBlockContentLogicalHeight(overrideContainingBlockContentLogicalHeight); 665 665 666 LayoutRect oldChildRect = child->frameRect(); 667 666 668 // FIXME: Grid items should stretch to fill their cells. Once we 667 669 // implement grid-{column,row}-align, we can also shrink to fit. For … … 671 673 // FIXME: Handle border & padding on the grid element. 672 674 child->setLogicalLocation(childPosition); 675 676 // If the child moved, we have to repaint it as well as any floating/positioned 677 // descendants. An exception is if we need a layout. In this case, we know we're going to 678 // repaint ourselves (and the child) anyway. 679 if (!selfNeedsLayout() && child->checkForRepaintDuringLayout()) 680 child->repaintDuringLayoutIfMoved(oldChildRect); 673 681 } 674 682
Note:
See TracChangeset
for help on using the changeset viewer.