Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(778)

Unified Diff: Source/core/editing/markup.cpp

Issue 18398002: Remove IDBNotFoundError ExceptionCode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/editing/markup.cpp
diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp
index 8d38db1fc4b430476a4a1ae0aef6a93ab5e16705..82b6c9c54c1e23533ec4e6d8c2489082895c2f3c 100644
--- a/Source/core/editing/markup.cpp
+++ b/Source/core/editing/markup.cpp
@@ -682,7 +682,7 @@ static void trimFragment(DocumentFragment* fragment, Node* nodeBeforeContext, No
}
next = NodeTraversal::nextSkippingChildren(node.get());
ASSERT(!node->contains(nodeAfterContext));
- node->parentNode()->removeChild(node.get(), ASSERT_NO_EXCEPTION);
+ node->parentNode()->removeChild(node.get());
if (nodeBeforeContext == node)
break;
}
@@ -690,7 +690,7 @@ static void trimFragment(DocumentFragment* fragment, Node* nodeBeforeContext, No
ASSERT(nodeAfterContext->parentNode());
for (RefPtr<Node> node = nodeAfterContext; node; node = next) {
next = NodeTraversal::nextSkippingChildren(node.get());
- node->parentNode()->removeChild(node.get(), ASSERT_NO_EXCEPTION);
+ node->parentNode()->removeChild(node.get());
}
}
@@ -990,10 +990,10 @@ static inline void removeElementPreservingChildren(PassRefPtr<DocumentFragment>
RefPtr<Node> nextChild;
for (RefPtr<Node> child = element->firstChild(); child; child = nextChild) {
nextChild = child->nextSibling();
- element->removeChild(child.get(), ASSERT_NO_EXCEPTION);
+ element->removeChild(child.get());
fragment->insertBefore(child, element, ASSERT_NO_EXCEPTION);
}
- fragment->removeChild(element, ASSERT_NO_EXCEPTION);
+ fragment->removeChild(element);
}
PassRefPtr<DocumentFragment> createContextualFragment(const String& markup, HTMLElement* element, ParserContentPolicy parserContentPolicy, ExceptionCode& ec)

Powered by Google App Engine
This is Rietveld 408576698