Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTable.cpp

Issue 2838643003: Invalidate collapsed borders using currentColor when color changes (Closed)
Patch Set: - Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698