| Index: third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
|
| index 33371708002255966bb7a4fd0f32d62689690267..0b6d3015034d2a1baf9e95a3ca91de146d70c8b2 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
|
| @@ -1003,7 +1003,7 @@ void LayoutTableSection::layoutRows()
|
| if (paginationStrutOnRow) {
|
| // If there isn't room for at least one content row on a page with a header group, then
|
| // we won't repeat the header on each page.
|
| - if (r == 0 && table()->sectionAbove(this) == table()->header())
|
| + if (!r && table()->header() && table()->sectionAbove(this) == table()->header())
|
| state.setHeightOffsetForTableHeaders(state.heightOffsetForTableHeaders() - table()->header()->logicalHeight());
|
| // If we have a header group we will paint it at the top of each page, move the rows
|
| // down to accomodate it.
|
|
|