Index: third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp b/third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp |
index b0e06e8778e98768917c88495e6dc416739615c6..f48eca2513c8176d9edf4e1affcb0fc5e4ab3df6 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp |
@@ -10,6 +10,19 @@ |
namespace blink { |
+void LayoutTableBoxComponent::InvalidateCollapsedBordersOnStyleChange( |
+ const LayoutObject& table_part, |
+ LayoutTable& table, |
+ const StyleDifference& diff, |
+ const ComputedStyle& old_style) { |
+ if (!table.CollapseBorders()) |
+ return; |
+ if (old_style.Border() != table_part.StyleRef().Border() || |
+ (diff.TextDecorationOrColorChanged() && |
+ table_part.StyleRef().HasBorderColorReferencingCurrentColor())) |
+ table.InvalidateCollapsedBorders(); |
+} |
+ |
bool LayoutTableBoxComponent::DoCellsHaveDirtyWidth( |
const LayoutObject& table_part, |
const LayoutTable& table, |