Index: Source/core/svg/SVGUseElement.cpp |
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp |
index 92f95a34354ae70bba5aed38542282aa24dea7c1..36d700dad26e542180852e2c197659ff1e44ccdd 100644 |
--- a/Source/core/svg/SVGUseElement.cpp |
+++ b/Source/core/svg/SVGUseElement.cpp |
@@ -677,8 +677,9 @@ static inline void removeDisallowedElementsFromSubtree(Element* subtree) |
// The subtree is not in document so this won't generate events that could mutate the tree. |
element->parentNode()->removeChild(element); |
element = next; |
- } else |
- element = ElementTraversal::next(element, subtree); |
+ } else { |
+ element = ElementTraversal::next(*element, subtree); |
+ } |
} |
} |