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