Index: Source/WebCore/dom/Document.cpp |
=================================================================== |
--- Source/WebCore/dom/Document.cpp (revision 129517) |
+++ Source/WebCore/dom/Document.cpp (working copy) |
@@ -1065,8 +1065,11 @@ |
return 0; |
} |
} |
- if (source->parentNode()) |
+ if (source->parentNode()) { |
source->parentNode()->removeChild(source.get(), ec); |
+ if (ec) |
+ return 0; |
+ } |
} |
this->adoptIfNeeded(source.get()); |