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

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

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, 11 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.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableRow.h b/third_party/WebKit/Source/core/layout/LayoutTableRow.h
index 753da7577b956e629224c10e02e2b53de07350d3..727fb93231c6e355d4edf3ec8ae5af35dab4689b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableRow.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTableRow.h
@@ -128,6 +128,8 @@ public:
bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override;
+ LayoutUnit paginationStrutPropagatedFromCell() const { return m_paginationStrutPropagatedFromCell; }
+ void setPaginationStrutPropagatedFromCell(LayoutUnit strut) { m_paginationStrutPropagatedFromCell = strut; };
mstensho (USE GERRIT) 2016/02/03 14:38:48 What if the cells don't all have the same strut?
rhogan 2016/02/24 18:58:17 I can't come up with a test in which they don't -
private:
LayoutObjectChildList* virtualChildren() override { return children(); }
const LayoutObjectChildList* virtualChildren() const override { return children(); }
@@ -165,6 +167,7 @@ private:
// rowIndex() above instead. This is to ensure that we never read this
// value before it is set.
unsigned m_rowIndex : 31;
+ LayoutUnit m_paginationStrutPropagatedFromCell;
mstensho (USE GERRIT) 2016/02/03 14:38:48 Not sure if LayoutUnit should be used in table cod
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableRow, isTableRow());

Powered by Google App Engine
This is Rietveld 408576698