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

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

Issue 2805103003: Optimize collapsed border calculation (step 2) (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/LayoutTableCol.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp b/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp
index 36ce08cb9b7188d09b9ff9fccdd0cbfae1b9d1ee..0b9dc04f761ee42f7ee913e045c07d4a2ef8f729 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCol.cpp
@@ -55,8 +55,9 @@ void LayoutTableCol::StyleDidChange(StyleDifference diff,
if (!table)
return;
- LayoutTableBoxComponent::InvalidateCollapsedBordersOnStyleChange(
- *this, *table, diff, *old_style);
+ if (LayoutTableBoxComponent::NeedsInvalidateCollapsedBordersOnStyleChange(
+ *this, *table, diff, *old_style))
+ table->SetNeedsInvalidateCollapsedBordersForAllCells();
if ((old_style->LogicalWidth() != Style()->LogicalWidth()) ||
LayoutTableBoxComponent::DoCellsHaveDirtyWidth(*this, *table, diff,

Powered by Google App Engine
This is Rietveld 408576698