Skip to content

Commit

Permalink
Antialias the dragged-link rounded rect
Browse files Browse the repository at this point in the history
Please see bug 661412 comments #0 and chromium#1 for a before/after to explain what this CL does.

R=eae@chromium.org
BUG=661412

Review-Url: https://codereview.chromium.org/2471533004
Cr-Commit-Position: refs/heads/master@{#429360}
  • Loading branch information
tanderson-google authored and Commit bot committed Nov 2, 2016
1 parent 4521dad commit 6761c70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions third_party/WebKit/Source/platform/DragImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ std::unique_ptr<DragImage> DragImage::create(const KURL& url,
IntRect rect(IntPoint(), imageSize);
SkPaint backgroundPaint;
backgroundPaint.setColor(SkColorSetRGB(140, 140, 140));
backgroundPaint.setAntiAlias(true);
SkRRect rrect;
rrect.setRectXY(SkRect::MakeWH(imageSize.width(), imageSize.height()),
DragLabelRadius, DragLabelRadius);
Expand Down

0 comments on commit 6761c70

Please sign in to comment.