Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGResources.cpp

Issue 2312713002: Unprefix -webkit-clip-path (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698