Index: Source/core/rendering/RenderLayer.cpp |
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
index b9027797340bec1a4f73896bb82f18f1697bb73c..8f176c40d74a9b073c9d7546c2066bc0600b1f9c 100644 |
--- a/Source/core/rendering/RenderLayer.cpp |
+++ b/Source/core/rendering/RenderLayer.cpp |
@@ -2037,7 +2037,7 @@ void RenderLayer::paintLayerContents(GraphicsContext* context, const LayerPainti |
Document& document = renderer()->document(); |
// FIXME: It doesn't work with forward or external SVG references (https://bugs.webkit.org/show_bug.cgi?id=90405) |
Element* element = document.getElementById(referenceClipPathOperation->fragment()); |
- if (element && element->hasTagName(SVGNames::clipPathTag) && element->renderer()) { |
+ if (isSVGClipPathElement(element) && element->renderer()) { |
if (!rootRelativeBoundsComputed) { |
rootRelativeBounds = calculateLayerBounds(paintingInfo.rootLayer, &offsetFromRoot, 0); |
rootRelativeBoundsComputed = true; |