Index: third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
index 9706eef1d92d1e52122197a5161e1d93f8893aee..55b511afd347582d99c8248b02ad966d5c3b2230 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
@@ -19,14 +19,10 @@ |
} |
void DrawingDisplayItem::AppendToWebDisplayItemList( |
- const LayoutSize& visual_rect_offset, |
+ const IntRect& visual_rect, |
WebDisplayItemList* list) const { |
- if (record_) { |
- // Convert visual rect into the GraphicsLayer's coordinate space. |
- LayoutRect visual_rect = VisualRect(); |
- visual_rect.Move(-visual_rect_offset); |
- list->AppendDrawingItem(EnclosingIntRect(visual_rect), record_); |
- } |
+ if (record_) |
+ list->AppendDrawingItem(visual_rect, record_); |
} |
bool DrawingDisplayItem::DrawsContent() const { |