Index: third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
diff --git a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
index 8daaf6848664c80f88824b9ea71532ecbf89229c..d55c32cc60f20c0cfc5bd5273d1caf76a46b1a83 100644 |
--- a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
+++ b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
@@ -266,14 +266,13 @@ gfx::Rect LinkHighlightImpl::paintableRegion() |
return gfx::Rect(0, 0, contentLayer()->layer()->bounds().width, contentLayer()->layer()->bounds().height); |
} |
-void LinkHighlightImpl::paintContents(WebDisplayItemList* webDisplayItemList, const WebRect& webClipRect, WebContentLayerClient::PaintingControlSetting paintingControl) |
+void LinkHighlightImpl::paintContents(WebDisplayItemList* webDisplayItemList, WebContentLayerClient::PaintingControlSetting paintingControl) |
{ |
if (!m_node || !m_node->layoutObject()) |
return; |
SkPictureRecorder recorder; |
- SkCanvas* canvas = recorder.beginRecording(webClipRect.width, webClipRect.height); |
- canvas->translate(-webClipRect.x, -webClipRect.y); |
+ SkCanvas* canvas = recorder.beginRecording(paintableRegion().width(), paintableRegion().height()); |
SkPaint paint; |
paint.setStyle(SkPaint::kFill_Style); |