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

Unified Diff: Source/core/paint/BoxBorderPainter.cpp

Issue 1172763002: Always anti-alias full border rect paints. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/BoxBorderPainter.cpp
diff --git a/Source/core/paint/BoxBorderPainter.cpp b/Source/core/paint/BoxBorderPainter.cpp
index 0aa07c3aab8a2686051cdb0f76333920d7a63cc2..453cc602f10f669fac37ddb5e443addbe2a4d646 100644
--- a/Source/core/paint/BoxBorderPainter.cpp
+++ b/Source/core/paint/BoxBorderPainter.cpp
@@ -257,17 +257,16 @@ void drawSolidBorderRect(GraphicsContext* context, const FloatRect& borderRect,
FloatRect strokeRect(borderRect);
strokeRect.inflate(-borderWidth / 2);
- bool antialias = BoxPainter::shouldAntialiasLines(context);
bool wasAntialias = context->shouldAntialias();
- if (antialias != wasAntialias)
- context->setShouldAntialias(antialias);
+ if (!wasAntialias)
+ context->setShouldAntialias(true);
context->setStrokeStyle(SolidStroke);
context->setStrokeColor(color);
context->strokeRect(strokeRect, borderWidth);
- if (antialias != wasAntialias)
- context->setShouldAntialias(wasAntialias);
+ if (!wasAntialias)
+ context->setShouldAntialias(false);
}
void drawBleedAdjustedDRRect(GraphicsContext* context, BackgroundBleedAvoidance bleedAvoidance,
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698