Revert of Properly repaint grid item when z-index changes (https://codereview.chromium.org/246113002/)

Reason for revert:
Depends on https://codereview.chromium.org/203463007/ which broke ChromeOS login
window: https://code.google.com/p/chromium/issues/detail?id=365507

Original issue's description:
> Properly repaint grid item when z-index changes
> 
> Previously z-index changes of static positioned objects are ignored.
> However, z-index is applicable for some static positioned objects,
> such as grid items. Ignoring them makes the object not properly painted
> on z-index change.
> 
> As StyleAdjuster has ensured that z-index is non-auto only if
> applicable, RenderStyle::visualInvalidationDiff() should not check
> again (with inconsistent conditions).
> 
> BUG=234200
> TEST=fast/css-grid/layout/grid-item-z-index-change-repaint.html
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172168

TBR=jchaffraix@chromium.org,ojan@chromium.org,esprehn@chromium.org,wangxianzhu@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=234200

Review URL: https://codereview.chromium.org/247713004

git-svn-id: svn://svn.chromium.org/blink/trunk@172171 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Don't always repaint on zIndex change (https://codereview.chromium.org/240253007/)

Reason for revert:
Depends on https://codereview.chromium.org/203463007/ which broke ChromeOS login window: https://code.google.com/p/chromium/issues/detail?id=365507

Original issue's description:
> Don't always repaint on zIndex change
> 
> If zIndex of a composited layer changes and there is no other conditions
> triggering repaint, we should not repaint the layer.
> 
> Now treat zIndex change like opacity change about repainting.
> 
> BUG=364636
> TEST=reuse existing compositing/repaint/should-not-repaint-composited-descendants.html
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171989

TBR=esprehn@chromium.org,eseidel@chromium.org,ojan@chromium.org,wangxianzhu@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=364636

Review URL: https://codereview.chromium.org/247293006

git-svn-id: svn://svn.chromium.org/blink/trunk@172172 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Separate repaint and layout requirements of StyleDifference (Step 1) (https://codereview.chromium.org/236203020/)

Reason for revert:
Reason for revert:
Depends on https://codereview.chromium.org/203463007/ which broke ChromeOS login window: https://code.google.com/p/chromium/issues/detail?id=365507

Original issue's description:
> Separate repaint and layout requirements of StyleDifference (Step 1)
> 
> Previously StyleDifference was an enum that proximately bigger values
> imply smaller values (e.g. StyleDifferenceLayout implies
> StyleDifferenceRepaint). This causes unnecessary repaints in some cases
> on layout change.
> 
> Convert StyleDifference to a structure containing relatively independent
> flags.
> 
> This change doesn't directly improve the result, but can make further
> repaint optimizations possible.
> 
> Step 1 doesn't change any functionality. RenderStyle still generate the
> legacy StyleDifference enum when comparing styles and convert the result
> to the new StyleDifference. Implicit requirements are not handled during
> the conversion.
> 
> Converted call sites to use the new StyleDifference according to the
> following conversion rules:
> - diff == StyleDifferenceEqual (&& !context) => diff.hasNoChange()
> - diff == StyleDifferenceRepaint => diff.needsRepaintObjectOnly()
> - diff == StyleDifferenceRepaintLayer => diff.needsRepaintLayer()
> - diff == StyleDifferenceRepaint || diff == StyleDifferenceRepaintLayer => diff.needsRepaintLayer()
> - diff >= StyleDifferenceRepaint => diff.needsRepaint() || diff.needsLayout()
> - diff >= StyleDifferenceRepaintLayer => diff.needsRepaintLayer() || diff.needsLayout()
> - diff > StyleDifferenceRepaintLayer => diff.needsLayout()
> - diff == StyleDifferencePositionedMovementLayoutOnly => diff.needsPositionedMovementLayoutOnly()
> - diff == StyleDifferenceLayout => diff.needsFullLayout()
> 
> BUG=358460
> TEST=All existing layout tests.
> R=eseidel@chromium.org, esprehn@chromium.org, jchaffraix@chromium.org
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171983

TBR=esprehn@chromium.org,jchaffraix@chromium.org,ojan@chromium.org,eseidel@chromium.org,wangxianzhu@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=358460

Review URL: https://codereview.chromium.org/247583003

git-svn-id: svn://svn.chromium.org/blink/trunk@172173 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Auto-rebaseline for r171923"

Reason for revert:
Depends on https://codereview.chromium.org/203463007/ which broke ChromeOS login
window: https://code.google.com/p/chromium/issues/detail?id=365507

Original change: https://codereview.chromium.org/243333004

TBR=ojan@chromium.org,trchen@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=365507

Review URL: https://codereview.chromium.org/248183002

git-svn-id: svn://svn.chromium.org/blink/trunk@172175 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Recompute overflow after transform changes (https://codereview.chromium.org/203463007/)

Reason for revert:
Seems very likely to have broken ChromeOS login page: https://code.google.com/p/chromium/issues/detail?id=365507

Original issue's description:
> Recompute overflow after transform changes
> 
> This CL adds a special code path that is very similar to simplifiedLayout.
> When the only change on an element is the transform, we can do the minimal
> work to recompute the layout overflow without much overhead from layout.
> 
> This is done by adding an overflow recalculation phase after style changes,
> if a RenderObject doesn't need layout and has moved transformed children,
> the special code path will kick in.
> 
> BUG=352460
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171923

TBR=esprehn@chromium.org,ojan@chromium.org,eseidel@chromium.org,trchen@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=352460
BUG=365507

Review URL: https://codereview.chromium.org/246783004

git-svn-id: svn://svn.chromium.org/blink/trunk@172176 bbb929c8-8fbe-4397-9dbb-9b2b20218538