| Index: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
|
| index 11aa9607f8989e04346cea5f3e778430659b1bdd..29912da85b86ef4328d4e09afb1bf4c2db609e81 100644
|
| --- a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
|
| +++ b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
|
| @@ -859,7 +859,7 @@ XMLDocumentParser::XMLDocumentParser(DocumentFragment* fragment, Element* parent
|
| }
|
|
|
| // If the parent element is not in document tree, there may be no xmlns attribute; just default to the parent's namespace.
|
| - if (m_defaultNamespaceURI.isNull() && !parentElement->inDocument())
|
| + if (m_defaultNamespaceURI.isNull() && !parentElement->inShadowIncludingDocument())
|
| m_defaultNamespaceURI = parentElement->namespaceURI();
|
| }
|
|
|
| @@ -1110,7 +1110,7 @@ void XMLDocumentParser::endElementNs()
|
|
|
| // The element's parent may have already been removed from document.
|
| // Parsing continues in this case, but scripts aren't executed.
|
| - if (!element->inDocument()) {
|
| + if (!element->inShadowIncludingDocument()) {
|
| popCurrentNode();
|
| return;
|
| }
|
|
|