Chromium Code Reviews| Index: Source/core/paint/FrameSetPainter.cpp |
| diff --git a/Source/core/paint/FrameSetPainter.cpp b/Source/core/paint/FrameSetPainter.cpp |
| index a45306f5746b341e49940b9c69978072be6bb124..f02ff9050ee015c167ad256fb8980be151b5d78c 100644 |
| --- a/Source/core/paint/FrameSetPainter.cpp |
| +++ b/Source/core/paint/FrameSetPainter.cpp |
| @@ -41,8 +41,8 @@ void FrameSetPainter::paintColumnBorder(const PaintInfo& paintInfo, const IntRec |
| // Now stroke the edges but only if we have enough room to paint both edges with a little |
| // bit of the fill color showing through. |
| if (borderRect.width() >= 3) { |
| - context->fillRect(IntRect(borderRect.location(), IntSize(1, m_layoutFrameSet.size().height())), borderStartEdgeColor()); |
| - context->fillRect(IntRect(IntPoint(borderRect.maxX() - 1, borderRect.y()), IntSize(1, m_layoutFrameSet.size().height())), borderEndEdgeColor()); |
| + context->fillRect(IntRect(borderRect.location(), IntSize(1, borderRect.height())), borderStartEdgeColor()); |
|
chrishtr
2015/06/03 18:15:15
Why the changes in this file?
trchen
2015/06/03 23:15:24
There is an over-paint with column border. Without
|
| + context->fillRect(IntRect(IntPoint(borderRect.maxX() - 1, borderRect.y()), IntSize(1, borderRect.height())), borderEndEdgeColor()); |
| } |
| } |
| @@ -57,8 +57,8 @@ void FrameSetPainter::paintRowBorder(const PaintInfo& paintInfo, const IntRect& |
| // Now stroke the edges but only if we have enough room to paint both edges with a little |
| // bit of the fill color showing through. |
| if (borderRect.height() >= 3) { |
| - context->fillRect(IntRect(borderRect.location(), IntSize(m_layoutFrameSet.size().width(), 1)), borderStartEdgeColor()); |
| - context->fillRect(IntRect(IntPoint(borderRect.x(), borderRect.maxY() - 1), IntSize(m_layoutFrameSet.size().width(), 1)), borderEndEdgeColor()); |
| + context->fillRect(IntRect(borderRect.location(), IntSize(borderRect.width(), 1)), borderStartEdgeColor()); |
| + context->fillRect(IntRect(IntPoint(borderRect.x(), borderRect.maxY() - 1), IntSize(borderRect.width(), 1)), borderEndEdgeColor()); |
| } |
| } |
| @@ -80,7 +80,7 @@ void FrameSetPainter::paintBorders(const PaintInfo& paintInfo, const LayoutPoint |
| xPos += m_layoutFrameSet.columns().m_sizes[c]; |
| if (borderThickness && m_layoutFrameSet.columns().m_allowBorder[c + 1]) { |
| paintColumnBorder(paintInfo, pixelSnappedIntRect( |
| - LayoutRect(adjustedPaintOffset.x() + xPos, adjustedPaintOffset.y() + yPos, borderThickness, m_layoutFrameSet.size().height()))); |
| + LayoutRect(adjustedPaintOffset.x() + xPos, adjustedPaintOffset.y() + yPos, borderThickness, m_layoutFrameSet.size().height() - yPos))); |
| xPos += borderThickness; |
| } |
| child = child->nextSibling(); |