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

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

Issue 2458823002: Don't establish LayoutState for LayoutTableRow objects. (Closed)
Patch Set: Created 4 years, 2 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/LayoutTableRow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
index 61d465a50dff4e3937facc5b3cb433220c581db2..d2980040fcc290a115ad78f34391c488c9f2a398 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
@@ -190,14 +190,11 @@ void LayoutTableRow::layout() {
ASSERT(needsLayout());
LayoutAnalyzer::Scope analyzer(*this);
- // Table rows do not add translation.
- LayoutState state(*this, LayoutSize());
-
for (LayoutTableCell* cell = firstCell(); cell; cell = cell->nextCell()) {
SubtreeLayoutScope layouter(*cell);
cell->setLogicalTop(logicalTop());
if (!cell->needsLayout())
- markChildForPaginationRelayoutIfNeeded(*cell, layouter);
+ section()->markChildForPaginationRelayoutIfNeeded(*cell, layouter);
if (cell->needsLayout())
cell->layout();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698