Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/PaintInvalidator.cpp |
| diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp |
| index b208df2e9058015007e597387b0e3d6d2f944ccf..9c9874dc5cf384a764af35be91348bf67018547d 100644 |
| --- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp |
| +++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp |
| @@ -487,7 +487,8 @@ void PaintInvalidator::invalidatePaintIfNeeded( |
| PaintInvalidatorContext::ForcedSubtreeInvalidationChecking; |
| } |
| - if (context.oldLocation != context.newLocation) { |
| + if (context.oldLocation != context.newLocation && |
| + !context.paintingLayer->subtreeIsInvisible()) { |
|
chrishtr
2017/04/04 17:03:45
Could you add a test checking that making the tree
Xianzhu
2017/04/04 18:03:33
Done.
|
| context.forcedSubtreeInvalidationFlags |= |
| PaintInvalidatorContext::ForcedSubtreeInvalidationChecking; |
| } |