| Index: third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp b/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
|
| index fa1b08389fc9103c2451cde3009fe6ceca135c21..98858bbe1096a4a49d2ed818eef5e35b8e8a8b32 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
|
| @@ -214,7 +214,8 @@ std::unique_ptr<SVGResources> SVGResources::buildResources(const LayoutObject* o
|
|
|
| std::unique_ptr<SVGResources> resources;
|
| if (clipperFilterMaskerTags().contains(tagName)) {
|
| - if (ClipPathOperation* clipPathOperation = style.clipPath()) {
|
| + if (computedStyle.clipPath() && !object->isSVGRoot()) {
|
| + ClipPathOperation* clipPathOperation = computedStyle.clipPath();
|
| if (clipPathOperation->type() == ClipPathOperation::REFERENCE) {
|
| const ReferenceClipPathOperation& clipPathReference = toReferenceClipPathOperation(*clipPathOperation);
|
| AtomicString id = SVGURIReference::fragmentIdentifierFromIRIString(clipPathReference.url(), treeScope);
|
|
|