diff --git a/layout/html/table/src/nsTableRowFrame.cpp b/layout/html/table/src/nsTableRowFrame.cpp
index 8d6d5fc184c7..1a6786c2d231 100644
--- a/layout/html/table/src/nsTableRowFrame.cpp
+++ b/layout/html/table/src/nsTableRowFrame.cpp
@@ -1321,7 +1321,10 @@ nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
if (cellKidFrame) {
cellFrame->ConsiderChildOverflow(aPresContext, cellMet.mOverflowArea, cellKidFrame);
cellFrame->StoreOverflow(aPresContext, cellMet);
- }
+ if (cellFrame->HasView()) {
+ nsContainerFrame::SyncFrameViewAfterReflow(aPresContext, cellFrame, cellFrame->GetView(), &cellMet.mOverflowArea, 0);
+ }
+ }
}
}
else
diff --git a/layout/tables/nsTableRowFrame.cpp b/layout/tables/nsTableRowFrame.cpp
index 8d6d5fc184c7..1a6786c2d231 100644
--- a/layout/tables/nsTableRowFrame.cpp
+++ b/layout/tables/nsTableRowFrame.cpp
@@ -1321,7 +1321,10 @@ nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
if (cellKidFrame) {
cellFrame->ConsiderChildOverflow(aPresContext, cellMet.mOverflowArea, cellKidFrame);
cellFrame->StoreOverflow(aPresContext, cellMet);
- }
+ if (cellFrame->HasView()) {
+ nsContainerFrame::SyncFrameViewAfterReflow(aPresContext, cellFrame, cellFrame->GetView(), &cellMet.mOverflowArea, 0);
+ }
+ }
}
}
else