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

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

Issue 2462643002: Be more restrictive about forcing relayout of children for pagination. (Closed)
Patch Set: No need to call updateFragmentationInfoForChild() when not paginated. 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableRow.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/LayoutTableSection.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
index 48612f65b6bfb2ac0c6ff3a2e7b15a7409facd76..b3b05d159674dab7c17a3735446b375666d61031 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
@@ -990,14 +990,14 @@ void LayoutTableSection::layout() {
}
if (LayoutTableRow* rowLayoutObject = m_grid[r].rowLayoutObject) {
- if (state.isPaginated()) {
+ if (state.isPaginated())
rowLayoutObject->setLogicalTop(rowLogicalTop);
- if (!rowLayoutObject->needsLayout())
- markChildForPaginationRelayoutIfNeeded(*rowLayoutObject, layouter);
- }
+ if (!rowLayoutObject->needsLayout())
+ markChildForPaginationRelayoutIfNeeded(*rowLayoutObject, layouter);
rowLayoutObject->layoutIfNeeded();
if (state.isPaginated()) {
adjustRowForPagination(*rowLayoutObject, layouter);
+ updateFragmentationInfoForChild(*rowLayoutObject);
rowLogicalTop = rowLayoutObject->logicalBottom();
rowLogicalTop += LayoutUnit(table()->vBorderSpacing());
}
@@ -1204,9 +1204,6 @@ void LayoutTableSection::layoutRows() {
setLogicalPositionForCell(cell, c);
- if (!cell->needsLayout())
- markChildForPaginationRelayoutIfNeeded(*cell, layouter);
-
cell->layoutIfNeeded();
LayoutSize childOffset(cell->location() - oldCellRect.location());
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableRow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698