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

Unified Diff: third_party/WebKit/Source/core/paint/SVGShapePainter.cpp

Issue 2003493003: Disable antialising for shapes with shape-rendering="optimizeSpeed" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Great expectations Created 4 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
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/custom/shape-rendering-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/core/paint/SVGShapePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp b/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
index 0894edc744876aa61c92209bd65f5383ca469adf..3862fc28700e64bd8bab6eaebfe854ee4222c936 100644
--- a/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
@@ -60,7 +60,7 @@ void SVGShapePainter::paint(const PaintInfo& paintInfo)
LayoutObjectDrawingRecorder recorder(paintContext.paintInfo().context, m_layoutSVGShape, paintContext.paintInfo().phase, boundingBox);
const SVGComputedStyle& svgStyle = m_layoutSVGShape.style()->svgStyle();
- bool shouldAntiAlias = svgStyle.shapeRendering() != SR_CRISPEDGES;
+ bool shouldAntiAlias = svgStyle.shapeRendering() != SR_CRISPEDGES && svgStyle.shapeRendering() != SR_OPTIMIZESPEED;
for (int i = 0; i < 3; i++) {
switch (svgStyle.paintOrderType(i)) {
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/custom/shape-rendering-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698