summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/layout_table_box_component.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/layout_table_box_component.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/layout_table_box_component.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/layout_table_box_component.cc b/chromium/third_party/blink/renderer/core/layout/layout_table_box_component.cc
index 49e4040afb9..03a3cc2cd04 100644
--- a/chromium/third_party/blink/renderer/core/layout/layout_table_box_component.cc
+++ b/chromium/third_party/blink/renderer/core/layout/layout_table_box_component.cc
@@ -51,7 +51,7 @@ void LayoutTableBoxComponent::MutableForPainting::UpdatePaintResult(
auto& box = static_cast<LayoutTableBoxComponent&>(layout_object_);
if (box.last_paint_result_ != kFullyPainted &&
box.last_paint_rect_ != paint_rect)
- layout_object_.SetDisplayItemsUncached();
+ static_cast<const DisplayItemClient&>(layout_object_).Invalidate();
box.last_paint_result_ = paint_result;
box.last_paint_rect_ = paint_rect;
@@ -61,7 +61,8 @@ void LayoutTableBoxComponent::StyleDidChange(StyleDifference diff,
const ComputedStyle* old_style) {
LayoutBox::StyleDidChange(diff, old_style);
SetCanContainFixedPositionObjects(
- Style()->CanContainFixedPositionObjects(false));
+ Style()->CanContainFixedPositionObjects(false) ||
+ ShouldApplyPaintContainment());
}
} // namespace blink