Skip to content

Commit

Permalink
Give a IntPoint to paint instead of x and y
Browse files Browse the repository at this point in the history
This fixes the last errors after 218a937.

I have confirmed that both the thead and the tfoot blocks are repeated
on the next pages when a table breaks over multiple pages. The other
content was already moved to take account of the size of thead and
tfoot, so this change doesn't affect any other content.

This fixes issue ariya#13324.
ariya#13324
  • Loading branch information
trygveaa committed Jun 16, 2015
1 parent 2ce20e0 commit 16fcb30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qt/qtwebkit/Source/WebCore/rendering/RenderTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ void RenderTable::paintObject(PaintInfo& paintInfo, const LayoutPoint& paintOffs
if (!info.rect.contains(childPoint.x() + m_head->x(), childPoint.y() + m_head->y())) {
repaintedHeadPoint = IntPoint(childPoint.x(), info.rect.y() - m_head->y());
repaintedHead = true;
dynamic_cast<RenderObject*>(m_head)->paint(info, repaintedHeadPoint.x(), repaintedHeadPoint.y());
dynamic_cast<RenderObject*>(m_head)->paint(info, repaintedHeadPoint);
}
}
if (m_foot) {
Expand Down Expand Up @@ -718,7 +718,7 @@ void RenderTable::paintObject(PaintInfo& paintInfo, const LayoutPoint& paintOffs
}
repaintedFoot = true;
repaintedFootPoint = IntPoint(childPoint.x(), dy - m_foot->y());
dynamic_cast<RenderObject*>(m_foot)->paint(info, repaintedFootPoint.x(), repaintedFootPoint.y());
dynamic_cast<RenderObject*>(m_foot)->paint(info, repaintedFootPoint);
}
}
}
Expand Down

0 comments on commit 16fcb30

Please sign in to comment.