Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: third_party/WebKit/Source/web/LinkHighlightImpl.cpp

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 9d1d9c23411a4be9f7bb5fc6c14d71ed313fe466..a4b0a7ac0ddcb584f77f4793d8c3c88dedf8396f 100644
--- a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
+++ b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
@@ -278,9 +278,9 @@ void LinkHighlightImpl::PaintContents(
return;
PaintRecorder recorder;
- gfx::Rect visual_rect = PaintableRegion();
+ gfx::Rect record_bounds = PaintableRegion();
PaintCanvas* canvas =
- recorder.beginRecording(visual_rect.width(), visual_rect.height());
+ recorder.beginRecording(record_bounds.width(), record_bounds.height());
PaintFlags flags;
flags.setStyle(PaintFlags::kFill_Style);
@@ -289,9 +289,11 @@ void LinkHighlightImpl::PaintContents(
canvas->drawPath(path_.GetSkPath(), flags);
web_display_item_list->AppendDrawingItem(
- WebRect(visual_rect.x(), visual_rect.y(), visual_rect.width(),
- visual_rect.height()),
- recorder.finishRecordingAsPicture());
+ WebRect(record_bounds.x(), record_bounds.y(), record_bounds.width(),
+ record_bounds.height()),
+ recorder.finishRecordingAsPicture(),
+ WebRect(record_bounds.x(), record_bounds.y(), record_bounds.width(),
+ record_bounds.height()));
}
void LinkHighlightImpl::StartHighlightAnimationIfNeeded() {

Powered by Google App Engine
This is Rietveld 408576698