| Index: Source/core/rendering/shapes/PolygonShape.cpp
|
| diff --git a/Source/core/rendering/shapes/PolygonShape.cpp b/Source/core/rendering/shapes/PolygonShape.cpp
|
| index 5b155ed6913b57aed3747c9ec7338eda153f6128..26ddcf3606b2b0883d16fa9f3ec74045ca41248b 100644
|
| --- a/Source/core/rendering/shapes/PolygonShape.cpp
|
| +++ b/Source/core/rendering/shapes/PolygonShape.cpp
|
| @@ -182,7 +182,7 @@ static inline PassOwnPtr<FloatPolygon> computeShapeMarginBounds(const FloatPolyg
|
| const FloatPolygon& PolygonShape::shapePaddingBounds() const
|
| {
|
| ASSERT(shapePadding() >= 0);
|
| - if (!shapePadding())
|
| + if (!shapePadding() || m_polygon.isEmpty())
|
| return m_polygon;
|
|
|
| if (!m_paddingBounds)
|
| @@ -194,7 +194,7 @@ const FloatPolygon& PolygonShape::shapePaddingBounds() const
|
| const FloatPolygon& PolygonShape::shapeMarginBounds() const
|
| {
|
| ASSERT(shapeMargin() >= 0);
|
| - if (!shapeMargin())
|
| + if (!shapeMargin() || m_polygon.isEmpty())
|
| return m_polygon;
|
|
|
| if (!m_marginBounds)
|
|
|