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

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

Issue 657023006: GC::drawConvexPolygon() & friends cleanup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: speculative RenderThemeChromiumMac fix Created 6 years, 2 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 | « no previous file | Source/core/paint/ObjectPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/BoxPainter.cpp
diff --git a/Source/core/paint/BoxPainter.cpp b/Source/core/paint/BoxPainter.cpp
index 906b7cc9e06e6e209cff58a69926ba7e288df71c..9a433c0fea9f8c8c121f0b58e0e59dcd28bde9f1 100644
--- a/Source/core/paint/BoxPainter.cpp
+++ b/Source/core/paint/BoxPainter.cpp
@@ -2110,7 +2110,7 @@ void BoxPainter::clipBorderSidePolygon(GraphicsContext* graphicsContext, const R
// If the border matches both of its adjacent sides, don't anti-alias the clip, and
// if neither side matches, anti-alias the clip.
if (firstEdgeMatches == secondEdgeMatches) {
- graphicsContext->clipConvexPolygon(4, quad, !firstEdgeMatches);
+ graphicsContext->clipPolygon(4, quad, !firstEdgeMatches);
return;
}
@@ -2142,14 +2142,14 @@ void BoxPainter::clipBorderSidePolygon(GraphicsContext* graphicsContext, const R
firstQuad[1] = quad[1];
firstQuad[2] = FloatPoint(quad[3].x() + r2 * ax, quad[3].y() + r2 * ay);
firstQuad[3] = quad[3];
- graphicsContext->clipConvexPolygon(4, firstQuad, !firstEdgeMatches);
+ graphicsContext->clipPolygon(4, firstQuad, !firstEdgeMatches);
FloatPoint secondQuad[4];
secondQuad[0] = quad[0];
secondQuad[1] = FloatPoint(quad[0].x() - r1 * cx, quad[0].y() - r1 * cy);
secondQuad[2] = quad[2];
secondQuad[3] = quad[3];
- graphicsContext->clipConvexPolygon(4, secondQuad, !secondEdgeMatches);
+ graphicsContext->clipPolygon(4, secondQuad, !secondEdgeMatches);
}
} // namespace blink
« no previous file with comments | « no previous file | Source/core/paint/ObjectPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698