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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTable.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
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 80edebfe16493241c93bf6845e3b00e2ecac53b5..6a5ecd5fa8a6457660d2d00fd965bb33f43651ea 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -432,6 +432,8 @@ void LayoutTable::layoutCaption(LayoutTableCaption& caption,
collapsedMarginBeforeForChild(caption) + logicalHeight();
caption.setLogicalLocation(
LayoutPoint(caption.marginStart(), captionLogicalTop));
+ if (view()->layoutState()->isPaginated())
+ updateFragmentationInfoForChild(caption);
if (!selfNeedsLayout())
caption.setMayNeedPaintInvalidation();
@@ -452,6 +454,8 @@ void LayoutTable::layoutSection(LayoutTableSection& section,
section.layoutIfNeeded();
int sectionLogicalHeight = section.calcRowLogicalHeight();
section.setLogicalHeight(LayoutUnit(sectionLogicalHeight));
+ if (view()->layoutState()->isPaginated())
+ updateFragmentationInfoForChild(section);
setLogicalHeight(logicalHeight() + sectionLogicalHeight);
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableRow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698