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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.cpp

Issue 1751993004: Don't anti-alias clips in the Blink-replay path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/layers/layer-canvas-log-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.cpp
index a1557a1517b61fb90d2b491b843bb066988b6f27..e4563be48b8147d6ea2893e8b8187e54dd41bb9d 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.cpp
@@ -14,7 +14,9 @@ namespace blink {
void ClipDisplayItem::replay(GraphicsContext& context) const
{
context.save();
- context.clipRect(m_clipRect, AntiAliased);
+ // TODO(chrishtr): make this AntiAliased. Not anti-aliasing here is a workaround for a PDF rendering issue.
+ // See crbug.com/590971.
+ context.clipRect(m_clipRect, NotAntiAliased);
for (const FloatRoundedRect& roundedRect : m_roundedRectClips)
context.clipRoundedRect(roundedRect);
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/layers/layer-canvas-log-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698