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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.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/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,

Powered by Google App Engine
This is Rietveld 408576698