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

Unified Diff: third_party/WebKit/Source/core/paint/TableSectionPainter.cpp

Issue 2545243002: Don't repeat thead if the first row exceeds the height of the page (Closed)
Patch Set: bug 669690 Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableSection.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
index 877fbd9b69f6b9df3a9b3cc056e53a9ce512d648..4b8f0396fe5b60a997ff7d48d2b661167eb60193 100644
--- a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
@@ -81,14 +81,12 @@ void TableSectionPainter::paintRepeatingHeaderGroup(
paintOffset.y() + totalHeightOfRows);
while (paginationOffset.y() < bottomBound) {
- LayoutPoint nestedOffset =
- paginationOffset +
- LayoutPoint(LayoutUnit(),
- m_layoutTableSection.offsetForRepeatingHeader());
- if (itemToPaint == PaintCollapsedBorders)
- paintCollapsedSectionBorders(paintInfo, nestedOffset, currentBorderValue);
- else
- paintSection(paintInfo, nestedOffset);
+ if (itemToPaint == PaintCollapsedBorders) {
+ paintCollapsedSectionBorders(paintInfo, paginationOffset,
+ currentBorderValue);
+ } else {
+ paintSection(paintInfo, paginationOffset);
+ }
paginationOffset.move(0, pageHeight.toInt());
}
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableSection.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698