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

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

Issue 1946413002: Avoid overflow recalc on tables if sections need rebuild (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 c792917d29ab20c6786f14e074ef0461765cda50..1c6950a782bc55916927e76c49ffee717c8697e1 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -419,9 +419,9 @@ bool LayoutTable::recalcChildOverflowAfterStyleChange()
ASSERT(childNeedsOverflowRecalcAfterStyleChange());
clearChildNeedsOverflowRecalcAfterStyleChange();
- // If the table needs layout the sections we keep pointers to may have gone away and
+ // If the table sections we keep pointers to have gone away then the table will be rebuilt and
// overflow will get recalculated anyway so return early.
- if (needsLayout())
+ if (needsSectionRecalc())
return false;
bool childrenOverflowChanged = false;

Powered by Google App Engine
This is Rietveld 408576698