Index: Source/core/dom/ContainerNode.cpp |
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp |
index a25bfb9804bb449b2ede37d78209dbf96c67d114..4256a5986c0edf602b926724a543e38404e899b9 100644 |
--- a/Source/core/dom/ContainerNode.cpp |
+++ b/Source/core/dom/ContainerNode.cpp |
@@ -166,7 +166,6 @@ static inline ExceptionCode checkAcceptChild(ContainerNode* newParent, Node* new |
// Use common case fast path if possible. |
if ((newChild->isElementNode() || newChild->isTextNode()) && newParent->isElementNode()) { |
- ASSERT(!newParent->isReadOnlyNode()); |
ASSERT(!newParent->isDocumentTypeNode()); |
ASSERT(isChildTypeAllowed(newParent, newChild)); |
if (containsConsideringHostElements(newChild, newParent)) |
@@ -179,8 +178,6 @@ static inline ExceptionCode checkAcceptChild(ContainerNode* newParent, Node* new |
if (newChild->isPseudoElement()) |
return HIERARCHY_REQUEST_ERR; |
- if (newParent->isReadOnlyNode()) |
- return NO_MODIFICATION_ALLOWED_ERR; |
if (newChild->inDocument() && newChild->isDocumentTypeNode()) |
return HIERARCHY_REQUEST_ERR; |
if (containsConsideringHostElements(newChild, newParent)) |
@@ -197,7 +194,6 @@ static inline ExceptionCode checkAcceptChild(ContainerNode* newParent, Node* new |
static inline bool checkAcceptChildGuaranteedNodeTypes(ContainerNode* newParent, Node* newChild, ExceptionCode& ec) |
{ |
- ASSERT(!newParent->isReadOnlyNode()); |
ASSERT(!newParent->isDocumentTypeNode()); |
ASSERT(isChildTypeAllowed(newParent, newChild)); |
if (newChild->contains(newParent)) { |
@@ -474,12 +470,6 @@ bool ContainerNode::removeChild(Node* oldChild, ExceptionCode& ec) |
ec = 0; |
- // NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. |
- if (isReadOnlyNode()) { |
- ec = NO_MODIFICATION_ALLOWED_ERR; |
- return false; |
- } |
- |
// NOT_FOUND_ERR: Raised if oldChild is not a child of this node. |
if (!oldChild || oldChild->parentNode() != this) { |
ec = NOT_FOUND_ERR; |