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

Unified Diff: Source/core/dom/Document.cpp

Issue 209383015: No need to clear the style resolver in Document::childrenChanged (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698