| Index: src/pdf/SkPDFDevice.cpp
|
| diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
|
| index d227dd7d1cb9f5c7eb9e141826b6d180205c8ff2..c1500b9548bcf6011e4d0b7342127f2e797fdf29 100644
|
| --- a/src/pdf/SkPDFDevice.cpp
|
| +++ b/src/pdf/SkPDFDevice.cpp
|
| @@ -404,10 +404,8 @@ static bool get_clip_stack_path(const SkMatrix& transform,
|
| outClipPath->reset();
|
| outClipPath->setFillType(SkPath::kInverseWinding_FillType);
|
| continue;
|
| - } else if (SkClipStack::Element::kRect_Type == clipEntry->getType()) {
|
| - entryPath.addRect(clipEntry->getRect());
|
| - } else if (SkClipStack::Element::kPath_Type == clipEntry->getType()) {
|
| - entryPath = clipEntry->getPath();
|
| + } else {
|
| + clipEntry->asPath(&entryPath);
|
| }
|
| entryPath.transform(transform);
|
|
|
|
|