| Index: third_party/WebKit/LayoutTests/resources/run-after-layout-and-paint.js
|
| diff --git a/third_party/WebKit/LayoutTests/resources/run-after-layout-and-paint.js b/third_party/WebKit/LayoutTests/resources/run-after-layout-and-paint.js
|
| index c69cc800f5ca6aad98fb351971fb7668c626a2cc..c6560aa21f3513ba47fc8be27c51934338d83902 100644
|
| --- a/third_party/WebKit/LayoutTests/resources/run-after-layout-and-paint.js
|
| +++ b/third_party/WebKit/LayoutTests/resources/run-after-layout-and-paint.js
|
| @@ -21,6 +21,15 @@
|
| // ... // some code which modifies style/layout
|
| // }, true);
|
|
|
| +if (window.internals) {
|
| + // TODO(wangxianzhu): Some spv2 tests crash with under-invalidation-checking
|
| + // because the extra display items between Subsequence/EndSubsequence for
|
| + // under-invalidation checking breaks paint chunks. Should fix this when fixing
|
| + // crbug.com/596983.
|
| + if (!internals.runtimeFlags.slimmingPaintV2Enabled)
|
| + internals.runtimeFlags.slimmingPaintUnderInvalidationCheckingEnabled = true;
|
| +}
|
| +
|
| function runAfterLayoutAndPaint(callback, autoNotifyDone) {
|
| if (!window.testRunner) {
|
| // For manual test. Delay 500ms to allow us to see the visual change
|
|
|