| Index: third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| index 4d51fd471ce1d2449701fd4520d515a0bf20faf0..80d088397a31799389c5b3cde1c750fc75b79c86 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
|
| @@ -99,9 +99,12 @@ void LayoutTable::StyleDidChange(StyleDifference diff,
|
| table_layout_ = WTF::MakeUnique<TableLayoutAlgorithmAuto>(this);
|
| }
|
|
|
| - // If border was changed, invalidate collapsed borders cache.
|
| - if (!NeedsLayout() && old_style && old_style->Border() != Style()->Border())
|
| - InvalidateCollapsedBorders();
|
| + if (!old_style)
|
| + return;
|
| +
|
| + LayoutTableBoxComponent::InvalidateCollapsedBordersOnStyleChange(
|
| + *this, *this, diff, *old_style);
|
| +
|
| if (LayoutTableBoxComponent::DoCellsHaveDirtyWidth(*this, *this, diff,
|
| *old_style))
|
| MarkAllCellsWidthsDirtyAndOrNeedsLayout(kMarkDirtyAndNeedsLayout);
|
|
|