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; |
} |