| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 61d138de1d3e763def04275bd63455727a847680..56afaf8b267a4667f23db06391969ea5de9a48ac 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -705,13 +705,7 @@ Location* Document::location() const
|
| void Document::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)
|
| {
|
| ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);
|
| -
|
| - Element* newDocumentElement = ElementTraversal::firstWithin(*this);
|
| - if (newDocumentElement == m_documentElement)
|
| - return;
|
| - m_documentElement = newDocumentElement;
|
| - // The root style used for media query matching depends on the document element.
|
| - clearStyleResolver();
|
| + m_documentElement = ElementTraversal::firstWithin(*this);
|
| }
|
|
|
| PassRefPtr<Element> Document::createElement(const AtomicString& name, ExceptionState& exceptionState)
|
|
|