| Index: third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
|
| diff --git a/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h b/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
|
| index cae7bc76c31ed1c4725b60fa46434ca1a7d01fad..a2d4595e3e552b35e29a5b78bd5da21fc579f68d 100644
|
| --- a/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
|
| +++ b/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
|
| @@ -91,6 +91,10 @@ class FindVisualRectNeedingUpdateScopeBase {
|
| void CheckVisualRect(const LayoutRect& new_visual_rect) {
|
| if (needed_visual_rect_update_)
|
| return;
|
| + if (context_.forced_subtree_invalidation_flags &
|
| + PaintInvalidatorContext::kForcedSubtreeNoRasterInvalidation)
|
| + return;
|
| +
|
| DCHECK((old_visual_rect_.IsEmpty() && new_visual_rect.IsEmpty()) ||
|
| object_.EnclosingLayer()->SubtreeIsInvisible() ||
|
| old_visual_rect_ == new_visual_rect ||
|
| @@ -158,6 +162,10 @@ class FindObjectVisualRectNeedingUpdateScope
|
| void CheckLocation() {
|
| if (needed_visual_rect_update_)
|
| return;
|
| + if (context_.forced_subtree_invalidation_flags &
|
| + PaintInvalidatorContext::kForcedSubtreeNoRasterInvalidation)
|
| + return;
|
| +
|
| LayoutPoint new_location =
|
| ObjectPaintInvalidator(object_).LocationInBacking();
|
| // Location of LayoutText and non-root SVG is location of the visual rect
|
|
|