Index: Source/core/inspector/DOMPatchSupport.cpp |
diff --git a/Source/core/inspector/DOMPatchSupport.cpp b/Source/core/inspector/DOMPatchSupport.cpp |
index a8ade6f8639b708b2838c1f60b0d8f94299a1738..f68df028b7bf97be20ff36cfb6e55e4b2c7f90ba 100644 |
--- a/Source/core/inspector/DOMPatchSupport.cpp |
+++ b/Source/core/inspector/DOMPatchSupport.cpp |
@@ -146,9 +146,9 @@ Node* DOMPatchSupport::patchNode(Node* node, const String& markup, ExceptionStat |
for (Node* child = parentNode->firstChild(); child != node; child = child->nextSibling()) |
newList.append(createDigest(child, 0)); |
for (Node* child = fragment->firstChild(); child; child = child->nextSibling()) { |
- if (isHTMLHeadElement(*child) && !child->firstChild() && markupCopy.find("</head>") == kNotFound) |
+ if (isHTMLHeadElement(*child) && !child->hasChildren() && markupCopy.find("</head>") == kNotFound) |
continue; // HTML5 parser inserts empty <head> tag whenever it parses <body> |
- if (isHTMLBodyElement(*child) && !child->firstChild() && markupCopy.find("</body>") == kNotFound) |
+ if (isHTMLBodyElement(*child) && !child->hasChildren() && markupCopy.find("</body>") == kNotFound) |
continue; // HTML5 parser inserts empty <body> tag whenever it parses </head> |
newList.append(createDigest(child, &m_unusedNodesMap)); |
} |