Index: third_party/WebKit/Source/core/paint/BoxPainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.cpp b/third_party/WebKit/Source/core/paint/BoxPainter.cpp |
index 9742626bb99f5824eb6d33ac320f87231f88dc2c..ea5b1376faa194979809ba28401a7fdea1c10c0e 100644 |
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp |
@@ -51,11 +51,10 @@ void BoxPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo, const |
paintBoxDecorationBackgroundWithRect(paintInfo, paintOffset, paintRect); |
} |
-LayoutRect BoxPainter::boundsForDrawingRecorder(const LayoutPoint& paintOffset) |
+LayoutRect BoxPainter::boundsForDrawingRecorder(const LayoutPoint& adjustedPaintOffset) |
{ |
- // Use the visual overflow rect here, because it will include overflow introduced by the theme. |
Xianzhu
2016/05/16 21:47:53
The comment doesn't look to make sense to me. We d
|
LayoutRect bounds = m_layoutBox.visualOverflowRect(); |
- bounds.moveBy(paintOffset); |
+ bounds.moveBy(adjustedPaintOffset); |
return bounds; |
} |