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

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

Issue 2840723005: Don't always invalidate collapsed borders during table layout (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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
index 60a3c3f2bd44ae491f482cf93d7c3b0f12028655..b18c797e6ed844e346b6d23b586ab4efcc5706b2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
@@ -172,6 +172,7 @@ void LayoutTableRow::AddChild(LayoutObject* child, LayoutObject* before_child) {
// neighboring cells.
LayoutTable* enclosing_table = Table();
if (enclosing_table && enclosing_table->CollapseBorders()) {
+ enclosing_table->InvalidateCollapsedBorders();
wkorman 2017/04/26 23:57:35 Would we consider further optimizing this case? We
Xianzhu 2017/04/27 15:43:40 This marks the table's collapsed borders data stru
if (LayoutTableCell* previous_cell = cell->PreviousCell())
previous_cell->SetNeedsLayoutAndPrefWidthsRecalc(
LayoutInvalidationReason::kTableChanged);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698