Chromium Code Reviews| Index: Source/core/rendering/shapes/PolygonShape.cpp |
| diff --git a/Source/core/rendering/shapes/PolygonShape.cpp b/Source/core/rendering/shapes/PolygonShape.cpp |
| index 15fd9bd451b0b58abc4f7dfb467e7225cb9827b2..736b6f5ec7f66644f44a3bc479d12a364c8455da 100644 |
| --- a/Source/core/rendering/shapes/PolygonShape.cpp |
| +++ b/Source/core/rendering/shapes/PolygonShape.cpp |
| @@ -148,4 +148,14 @@ void PolygonShape::getExcludedIntervals(LayoutUnit logicalTop, LayoutUnit logica |
| result.append(LineSegment(excludedInterval.x1(), excludedInterval.x2())); |
| } |
| +void PolygonShape::buildDisplayPaths(DisplayPaths& paths) const |
| +{ |
| + if (!m_polygon.numberOfVertices()) |
| + return; |
| + paths.shape.moveTo(m_polygon.vertexAt(0)); |
| + for (size_t i = 1; i < m_polygon.numberOfVertices(); ++i) |
| + paths.shape.addLineTo(m_polygon.vertexAt(i)); |
| + paths.shape.closeSubpath(); |
|
Bear Travis
2014/04/17 20:26:45
Is there not support for displaying polygon shape
Habib Virji
2014/04/23 16:28:33
Margin does not work as it has lot of functionalit
|
| +} |
| + |
| } // namespace WebCore |