summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/JSStyleSheetCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/js/JSStyleSheetCustom.cpp')
-rw-r--r--WebCore/bindings/js/JSStyleSheetCustom.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/WebCore/bindings/js/JSStyleSheetCustom.cpp b/WebCore/bindings/js/JSStyleSheetCustom.cpp
index ecfc6a6..04c6561 100644
--- a/WebCore/bindings/js/JSStyleSheetCustom.cpp
+++ b/WebCore/bindings/js/JSStyleSheetCustom.cpp
@@ -62,14 +62,6 @@ void JSStyleSheet::markChildren(MarkStack& markStack)
unsigned length = sheet->length();
for (unsigned i = 0; i < length; ++i)
markDOMObjectWrapper(markStack, globalData, sheet->item(i));
-
- // This prevents us from having a style sheet with a dangling ownerNode pointer.
- // A better solution would be to handle this on the DOM side -- if the style sheet
- // is kept around, then we want the node to stay around too. One possibility would
- // be to make ref/deref on the style sheet ref/deref the node instead, but there's
- // a lot of disentangling of the CSS DOM objects that would need to happen first.
- if (Node* ownerNode = sheet->ownerNode())
- markDOMNodeWrapper(markStack, ownerNode->document(), ownerNode);
}
} // namespace WebCore