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

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

Issue 1147343003: Drop fillRule state from GraphicsContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 5 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 | « Source/core/paint/BoxBorderPainter.cpp ('k') | Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ObjectPainter.cpp
diff --git a/Source/core/paint/ObjectPainter.cpp b/Source/core/paint/ObjectPainter.cpp
index f4917cb744ca1fdce0422b95c4d9c2e324e54720..37886757c15136eb1bebe76af7fa091ca88faa3d 100644
--- a/Source/core/paint/ObjectPainter.cpp
+++ b/Source/core/paint/ObjectPainter.cpp
@@ -66,9 +66,9 @@ void ObjectPainter::paintOutline(const PaintInfo& paintInfo, const LayoutRect& o
if (useTransparencyLayer) {
if (outlineStyle == SOLID) {
Path path;
+ path.setWindRule(RULE_EVENODD);
path.addRect(outer);
path.addRect(inner);
- graphicsContext->setFillRule(RULE_EVENODD);
graphicsContext->setFillColor(outlineColor);
graphicsContext->fillPath(path);
return;
« no previous file with comments | « Source/core/paint/BoxBorderPainter.cpp ('k') | Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698