Index: third_party/WebKit/Source/core/layout/LayoutTableRow.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp |
index 8215fdb98b428b7a0c9a06eb3ac3b8197e22035c..4c98410cef2bf815338d9fd1597b35af6e62610a 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp |
@@ -258,6 +258,19 @@ bool LayoutTableRow::nodeAtPoint(HitTestResult& result, |
return false; |
} |
+LayoutBox::PaginationBreakability LayoutTableRow::getPaginationBreakability() |
+ const { |
+ PaginationBreakability breakability = |
+ LayoutTableBoxComponent::getPaginationBreakability(); |
+ if (breakability == AllowAnyBreaks) { |
+ // Even if the row allows us to break inside, we will want to prevent that |
+ // if we have a header group that wants to appear at the top of each page. |
+ if (const LayoutTableSection* header = table()->header()) |
+ breakability = header->getPaginationBreakability(); |
+ } |
+ return breakability; |
+} |
+ |
void LayoutTableRow::paint(const PaintInfo& paintInfo, |
const LayoutPoint& paintOffset) const { |
TableRowPainter(*this).paint(paintInfo, paintOffset); |