Changeset 88250 in webkit for trunk/Source/WebCore/rendering/RenderFrameSet.cpp
- Timestamp:
- Jun 7, 2011, 11:56:41 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderFrameSet.cpp
r86705 r88250 119 119 } 120 120 121 void RenderFrameSet::paint(PaintInfo& paintInfo, int tx, int ty)121 void RenderFrameSet::paint(PaintInfo& paintInfo, const IntPoint& paintOffset) 122 122 { 123 123 if (paintInfo.phase != PaintPhaseForeground) … … 128 128 return; 129 129 130 // Add in our offsets. 131 tx += x(); 132 ty += y(); 130 IntPoint adjustedPaintOffset = paintOffset + location(); 133 131 134 132 int rows = frameSet()->totalRows(); … … 140 138 int xPos = 0; 141 139 for (int c = 0; c < cols; c++) { 142 child->paint(paintInfo, tx, ty);140 child->paint(paintInfo, adjustedPaintOffset); 143 141 xPos += m_cols.m_sizes[c]; 144 142 if (borderThickness && m_cols.m_allowBorder[c + 1]) { 145 paintColumnBorder(paintInfo, IntRect( tx + xPos, ty+ yPos, borderThickness, height()));143 paintColumnBorder(paintInfo, IntRect(adjustedPaintOffset.x() + xPos, adjustedPaintOffset.y() + yPos, borderThickness, height())); 146 144 xPos += borderThickness; 147 145 } … … 152 150 yPos += m_rows.m_sizes[r]; 153 151 if (borderThickness && m_rows.m_allowBorder[r + 1]) { 154 paintRowBorder(paintInfo, IntRect( tx, ty+ yPos, width(), borderThickness));152 paintRowBorder(paintInfo, IntRect(adjustedPaintOffset.x(), adjustedPaintOffset.y() + yPos, width(), borderThickness)); 155 153 yPos += borderThickness; 156 154 }
Note:
See TracChangeset
for help on using the changeset viewer.