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

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, 10 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..8101cee562da966533f99ad1fa670688d7d80b06 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableRow.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTableRow.h
@@ -128,6 +128,10 @@ public:
bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override;
+ int paginationStrutPropagatedFromCell() const { return m_paginationStrutPropagatedFromCell; }
+ void resetPaginationStrutPropagatedFromCell() { m_paginationStrutPropagatedFromCell = 0; }
+ void setPaginationStrutPropagatedFromCell(LayoutUnit strut) { ASSERT(!m_paginationStrutPropagatedFromCell || !strut || m_paginationStrutPropagatedFromCell == strut); m_paginationStrutPropagatedFromCell = strut; }
+
private:
LayoutObjectChildList* virtualChildren() override { return children(); }
const LayoutObjectChildList* virtualChildren() const override { return children(); }
@@ -165,6 +169,7 @@ private:
// rowIndex() above instead. This is to ensure that we never read this
// value before it is set.
unsigned m_rowIndex : 31;
+ int m_paginationStrutPropagatedFromCell;
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableRow, isTableRow());

Powered by Google App Engine
This is Rietveld 408576698