Remove selector filter update calls from Element child parsing callbacks
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jan 2016 20:36:59 +0000 (20:36 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jan 2016 20:36:59 +0000 (20:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=152749

Reviewed by Andreas Kling.

We haven't done style resolve during parsing for a while now. These calls do nothing useful.

* dom/Element.cpp:
(WebCore::Element::beginParsingChildren):
(WebCore::Element::finishParsingChildren):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@194596 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/dom/Element.cpp

index 9500231..2d63979 100644 (file)
@@ -1,3 +1,16 @@
+2016-01-05  Antti Koivisto  <antti@apple.com>
+
+        Remove selector filter update calls from Element child parsing callbacks
+        https://bugs.webkit.org/show_bug.cgi?id=152749
+
+        Reviewed by Andreas Kling.
+
+        We haven't done style resolve during parsing for a while now. These calls do nothing useful.
+
+        * dom/Element.cpp:
+        (WebCore::Element::beginParsingChildren):
+        (WebCore::Element::finishParsingChildren):
+
 2016-01-05  Brady Eidson  <beidson@apple.com>
 
         Modern IDB: Error message updates for two failing tests.
index c05a0a9..989e14e 100644 (file)
@@ -1888,8 +1888,6 @@ void Element::removeAllEventListeners()
 void Element::beginParsingChildren()
 {
     clearIsParsingChildrenFinished();
-    if (auto styleResolver = document().styleResolverIfExists())
-        styleResolver->pushParentElement(this);
 }
 
 void Element::finishParsingChildren()
@@ -1897,8 +1895,6 @@ void Element::finishParsingChildren()
     ContainerNode::finishParsingChildren();
     setIsParsingChildrenFinished();
     checkForSiblingStyleChanges(*this, FinishedParsingChildren, ElementTraversal::lastChild(*this), nullptr);
-    if (auto styleResolver = document().styleResolverIfExists())
-        styleResolver->popParentElement(this);
 }
 
 #if ENABLE(TREE_DEBUGGING)