Index: Source/core/rendering/svg/RenderSVGResourcePattern.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGResourcePattern.cpp b/Source/core/rendering/svg/RenderSVGResourcePattern.cpp |
index 1169ae70b3346a9c117448f83aa7f7c336948e0f..6c87ce5be0d4f20dff85a8b7ad408de7d1b8f054 100644 |
--- a/Source/core/rendering/svg/RenderSVGResourcePattern.cpp |
+++ b/Source/core/rendering/svg/RenderSVGResourcePattern.cpp |
@@ -258,8 +258,8 @@ PassOwnPtr<ImageBuffer> RenderSVGResourcePattern::createTileImage(const PatternA |
contentTransformation = tileImageTransform; |
// Draw the content into the ImageBuffer. |
- for (Element* element = ElementTraversal::firstChild(*attributes.patternContentElement()); element; element = ElementTraversal::nextSibling(*element)) { |
- if (!element->isSVGElement() || !element->renderer()) |
+ for (SVGElement* element = Traversal<SVGElement>::firstChild(*attributes.patternContentElement()); element; element = Traversal<SVGElement>::nextSibling(*element)) { |
+ if (!element->renderer()) |
continue; |
if (element->renderer()->needsLayout()) |
return nullptr; |