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

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

Issue 1195933002: SP: Always anti-alias borders in slimming paint mode. (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 | « Source/core/paint/BoxPainter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/InlinePainter.cpp
diff --git a/Source/core/paint/InlinePainter.cpp b/Source/core/paint/InlinePainter.cpp
index 92a9afbc4fd8d33472bc0eeb03351418de1dcdd8..4e56587396dde67b336a8937d5a0d18943de3fb9 100644
--- a/Source/core/paint/InlinePainter.cpp
+++ b/Source/core/paint/InlinePainter.cpp
@@ -106,8 +106,6 @@ void InlinePainter::paintOutlineForLine(GraphicsContext* graphicsContext, const
int outlineWidth = styleToUse.outlineWidth();
EBorderStyle outlineStyle = styleToUse.outlineStyle();
- bool antialias = BoxPainter::shouldAntialiasLines(graphicsContext);
-
int offset = m_layoutInline.style()->outlineOffset();
LayoutRect box(LayoutPoint(paintOffset.x() + thisline.x() - offset, paintOffset.y() + thisline.y() - offset),
@@ -133,7 +131,7 @@ void InlinePainter::paintOutlineForLine(GraphicsContext* graphicsContext, const
outlineColor, outlineStyle,
(lastline.isEmpty() || thisline.x() < lastline.x() || (lastline.maxX() - 1) <= thisline.x() ? outlineWidth : -outlineWidth),
(nextline.isEmpty() || thisline.x() <= nextline.x() || (nextline.maxX() - 1) <= thisline.x() ? outlineWidth : -outlineWidth),
- antialias);
+ false);
// right edge
ObjectPainter::drawLineForBoxSide(graphicsContext,
@@ -145,7 +143,7 @@ void InlinePainter::paintOutlineForLine(GraphicsContext* graphicsContext, const
outlineColor, outlineStyle,
(lastline.isEmpty() || lastline.maxX() < thisline.maxX() || (thisline.maxX() - 1) <= lastline.x() ? outlineWidth : -outlineWidth),
(nextline.isEmpty() || nextline.maxX() <= thisline.maxX() || (thisline.maxX() - 1) <= nextline.x() ? outlineWidth : -outlineWidth),
- antialias);
+ false);
// upper edge
if (thisline.x() < lastline.x()) {
ObjectPainter::drawLineForBoxSide(graphicsContext,
@@ -156,7 +154,7 @@ void InlinePainter::paintOutlineForLine(GraphicsContext* graphicsContext, const
BSTop, outlineColor, outlineStyle,
outlineWidth,
(!lastline.isEmpty() && paintOffset.x() + lastline.x() + 1 < pixelSnappedBox.maxX() + outlineWidth) ? -outlineWidth : outlineWidth,
- antialias);
+ false);
}
if (lastline.maxX() < thisline.maxX()) {
@@ -167,7 +165,7 @@ void InlinePainter::paintOutlineForLine(GraphicsContext* graphicsContext, const
pixelSnappedBox.y(),
BSTop, outlineColor, outlineStyle,
(!lastline.isEmpty() && pixelSnappedBox.x() - outlineWidth < paintOffset.x() + lastline.maxX()) ? -outlineWidth : outlineWidth,
- outlineWidth, antialias);
+ outlineWidth, false);
}
if (thisline.x() == thisline.maxX()) {
@@ -179,7 +177,7 @@ void InlinePainter::paintOutlineForLine(GraphicsContext* graphicsContext, const
BSTop, outlineColor, outlineStyle,
outlineWidth,
outlineWidth,
- antialias);
+ false);
}
// lower edge
@@ -192,7 +190,7 @@ void InlinePainter::paintOutlineForLine(GraphicsContext* graphicsContext, const
BSBottom, outlineColor, outlineStyle,
outlineWidth,
(!nextline.isEmpty() && paintOffset.x() + nextline.x() + 1 < pixelSnappedBox.maxX() + outlineWidth) ? -outlineWidth : outlineWidth,
- antialias);
+ false);
}
if (nextline.maxX() < thisline.maxX()) {
@@ -203,7 +201,7 @@ void InlinePainter::paintOutlineForLine(GraphicsContext* graphicsContext, const
pixelSnappedBox.maxY() + outlineWidth,
BSBottom, outlineColor, outlineStyle,
(!nextline.isEmpty() && pixelSnappedBox.x() - outlineWidth < paintOffset.x() + nextline.maxX()) ? -outlineWidth : outlineWidth,
- outlineWidth, antialias);
+ outlineWidth, false);
}
if (thisline.x() == thisline.maxX()) {
@@ -215,7 +213,7 @@ void InlinePainter::paintOutlineForLine(GraphicsContext* graphicsContext, const
BSBottom, outlineColor, outlineStyle,
outlineWidth,
outlineWidth,
- antialias);
+ false);
}
}
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698