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

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

Issue 1887933002: (CANCELED) Fix TextAutosizer not to scheduleRelayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplifiedLayout Created 4 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 6d1bffb13fc7f102b76d0f737e0c55dc765ead2b..84442225a852c70551f0488ba89858b3fd3683a6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -418,21 +418,20 @@ void LayoutTable::layout()
{
ASSERT(needsLayout());
LayoutAnalyzer::Scope analyzer(*this);
+ SubtreeLayoutScope layouter(*this);
- if (simplifiedLayout())
+ if (simplifiedLayout(&layouter))
return;
// Note: LayoutTable is handled differently than other LayoutBlocks and the LayoutScope
// must be created before the table begins laying out.
- TextAutosizer::LayoutScope textAutosizerLayoutScope(this);
+ TextAutosizer::LayoutScope textAutosizerLayoutScope(this, &layouter);
recalcSectionsIfNeeded();
// FIXME: We should do this recalc lazily in borderStart/borderEnd so that we don't have to make sure
// to call this before we call borderStart/borderEnd to avoid getting a stale value.
recalcBordersInRowDirection();
- SubtreeLayoutScope layouter(*this);
-
// If any table section moved vertically, we will just issue paint invalidations for everything from that
// section down (it is quite unlikely that any of the following sections
// did not shift).

Powered by Google App Engine
This is Rietveld 408576698