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

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

Issue 1602773005: Respect break-inside:avoid on table rows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 4 years, 9 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/LayoutBlockFlowLine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
index 3a9f7136bbbceed46fbe505f03df4b68dcd8e402..aabe19efc3f2d553a951a0598e37ac40e7fea11a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
@@ -911,7 +911,8 @@ void LayoutBlockFlow::layoutRunsAndFloatsInRange(LineLayoutState& layoutState,
if (layoutState.usesPaintInvalidationBounds())
layoutState.updatePaintInvalidationRangeFromBox(lineBox);
- if (paginated) {
+ bool insideBreakableObject = !isTableCell() || toLayoutBox(parent())->getPaginationBreakability() == AllowAnyBreaks;
mstensho (USE GERRIT) 2016/03/17 14:04:03 This is wrong. break-inside:avoid means that you s
+ if (paginated && insideBreakableObject) {
LayoutUnit adjustment;
adjustLinePositionForPagination(*lineBox, adjustment);
if (adjustment) {

Powered by Google App Engine
This is Rietveld 408576698