Index: Source/core/svg/SVGUseElement.cpp |
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp |
index 3911547f004318ccbab70a64878817f1dfe53725..b06be2073e5b0bf249f9c0576f698273628218d7 100644 |
--- a/Source/core/svg/SVGUseElement.cpp |
+++ b/Source/core/svg/SVGUseElement.cpp |
@@ -672,7 +672,7 @@ static inline void removeDisallowedElementsFromSubtree(Element* subtree) |
Element* element = ElementTraversal::firstWithin(subtree); |
while (element) { |
if (isDisallowedElement(element)) { |
- Element* next = ElementTraversal::nextSkippingChildren(element, subtree); |
+ Element* next = ElementTraversal::nextSkippingChildren(*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; |