Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
| index d58373e6a124239bc25b92d4913befe51f5dd5e1..ec9e9d55081338809455e98d697ffa158904c8c2 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
| @@ -356,7 +356,7 @@ void LayoutBlock::invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& chil |
| // If it's a new paint invalidation container, we won't have properly accumulated the offset into the |
| // PaintInvalidationState. |
| // FIXME: Teach PaintInvalidationState to handle this case. crbug.com/371485 |
| - if (paintInvalidationContainerForChild != childPaintInvalidationState.paintInvalidationContainer()) { |
| + if (&paintInvalidationContainerForChild != box && paintInvalidationContainerForChild != childPaintInvalidationState.paintInvalidationContainer()) { |
|
chrishtr
2016/03/11 18:19:59
If box establishes a paint invalidation container,
Xianzhu
2016/03/11 18:30:32
In the case the paint offset won't be used, for ei
chrishtr
2016/03/11 21:17:16
Is there a test for this case?
Xianzhu
2016/03/11 21:39:56
Many existing layout tests cover the code here and
|
| ForceHorriblySlowRectMapping slowRectMapping(&childPaintInvalidationState); |
| PaintInvalidationState disabledPaintInvalidationState(childPaintInvalidationState, *this, paintInvalidationContainerForChild); |
| box->invalidateTreeIfNeeded(disabledPaintInvalidationState); |