Changeset 107889 in webkit for trunk/Source/WebCore/rendering/RenderFrameSet.cpp
- Timestamp:
- Feb 15, 2012, 11:04:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderFrameSet.cpp
r107461 r107889 81 81 } 82 82 83 void RenderFrameSet::paintColumnBorder(const PaintInfo& paintInfo, const LayoutRect& borderRect)84 { 85 if (!paintInfo.rect.intersects( pixelSnappedIntRect(borderRect)))83 void RenderFrameSet::paintColumnBorder(const PaintInfo& paintInfo, const IntRect& borderRect) 84 { 85 if (!paintInfo.rect.intersects(borderRect)) 86 86 return; 87 87 … … 101 101 } 102 102 103 void RenderFrameSet::paintRowBorder(const PaintInfo& paintInfo, const LayoutRect& borderRect)104 { 105 if (!paintInfo.rect.intersects( pixelSnappedIntRect(borderRect)))103 void RenderFrameSet::paintRowBorder(const PaintInfo& paintInfo, const IntRect& borderRect) 104 { 105 if (!paintInfo.rect.intersects(borderRect)) 106 106 return; 107 107 … … 143 143 xPos += m_cols.m_sizes[c]; 144 144 if (borderThickness && m_cols.m_allowBorder[c + 1]) { 145 paintColumnBorder(paintInfo, LayoutRect(adjustedPaintOffset.x() + xPos, adjustedPaintOffset.y() + yPos, borderThickness, height()));145 paintColumnBorder(paintInfo, pixelSnappedIntRect(LayoutRect(adjustedPaintOffset.x() + xPos, adjustedPaintOffset.y() + yPos, borderThickness, height()))); 146 146 xPos += borderThickness; 147 147 } … … 152 152 yPos += m_rows.m_sizes[r]; 153 153 if (borderThickness && m_rows.m_allowBorder[r + 1]) { 154 paintRowBorder(paintInfo, LayoutRect(adjustedPaintOffset.x(), adjustedPaintOffset.y() + yPos, width(), borderThickness));154 paintRowBorder(paintInfo, pixelSnappedIntRect(LayoutRect(adjustedPaintOffset.x(), adjustedPaintOffset.y() + yPos, width(), borderThickness))); 155 155 yPos += borderThickness; 156 156 } … … 803 803 CursorDirective RenderFrameSet::getCursor(const LayoutPoint& point, Cursor& cursor) const 804 804 { 805 if (canResizeRow(roundedIntPoint(point))) { 805 IntPoint roundedPoint = roundedIntPoint(point); 806 if (canResizeRow(roundedPoint)) { 806 807 cursor = rowResizeCursor(); 807 808 return SetCursor; 808 809 } 809 if (canResizeColumn( point)) {810 if (canResizeColumn(roundedPoint)) { 810 811 cursor = columnResizeCursor(); 811 812 return SetCursor;
Note:
See TracChangeset
for help on using the changeset viewer.