diff options
Diffstat (limited to 'Source/WebCore/bindings/js/JSAttrCustom.cpp')
-rw-r--r-- | Source/WebCore/bindings/js/JSAttrCustom.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/bindings/js/JSAttrCustom.cpp b/Source/WebCore/bindings/js/JSAttrCustom.cpp index 227582d..305dc81 100644 --- a/Source/WebCore/bindings/js/JSAttrCustom.cpp +++ b/Source/WebCore/bindings/js/JSAttrCustom.cpp @@ -43,10 +43,10 @@ void JSAttr::markChildren(MarkStack& markStack) { Base::markChildren(markStack); - // Mark the element so that this will work to access the attribute even if the last - // other reference goes away. - if (Element* element = impl()->ownerElement()) - markDOMNodeWrapper(markStack, element->document(), element); + Element* element = impl()->ownerElement(); + if (!element) + return; + markStack.addOpaqueRoot(root(element)); } } // namespace WebCore |