Chromium Code Reviews

Unified Diff: Source/core/paint/BoxBorderPainter.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.
Jump to:
View side-by-side diff with in-line comments
« 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/BoxBorderPainter.cpp
diff --git a/Source/core/paint/BoxBorderPainter.cpp b/Source/core/paint/BoxBorderPainter.cpp
index 8aca2436f927579bab747038f333f39c11c85b44..db6254da46a7b9a4cc51a5eaac9c405f5d8035c5 100644
--- a/Source/core/paint/BoxBorderPainter.cpp
+++ b/Source/core/paint/BoxBorderPainter.cpp
@@ -418,6 +418,7 @@ bool BoxBorderPainter::paintBorderFastPath(GraphicsContext* context, const Layou
ASSERT(m_visibleEdgeSet != AllBorderEdges);
// solid, rectangular border => one drawPath()
Path path;
+ path.setWindRule(RULE_NONZERO);
for (int i = BSTop; i <= BSLeft; ++i) {
const BorderEdge& currEdge = m_edges[i];
@@ -425,10 +426,8 @@ bool BoxBorderPainter::paintBorderFastPath(GraphicsContext* context, const Layou
path.addRect(calculateSideRect(m_outer, currEdge, i));
}
- context->setFillRule(RULE_NONZERO);
context->setFillColor(firstEdge().color);
context->fillPath(path);
-
return true;
}
« no previous file with comments | « no previous file | Source/core/paint/ObjectPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine