Allow InStyleRecalc and InPreLayout from CompositingForSlimmingPaintV2Clean

Previously almost every layout test crashed with
--enable-slimming-paint-v2 when advancing document lifecycle state from
CompositingForSlimmingPaintV2Clean to InStyleRecalc or InPreLayout.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@200767 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 6d3806e4
...@@ -213,6 +213,10 @@ bool DocumentLifecycle::canAdvanceTo(State nextState) const ...@@ -213,6 +213,10 @@ bool DocumentLifecycle::canAdvanceTo(State nextState) const
case CompositingForSlimmingPaintV2Clean: case CompositingForSlimmingPaintV2Clean:
if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
return false; return false;
if (nextState == InStyleRecalc)
return true;
if (nextState == InPreLayout)
return true;
if (nextState == InCompositingUpdate) if (nextState == InCompositingUpdate)
return true; return true;
if (nextState == CompositingForSlimmingPaintV2Clean) if (nextState == CompositingForSlimmingPaintV2Clean)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment