Changeset 109906 in webkit


Ignore:
Timestamp:
Mar 6, 2012 4:42:54 AM (12 years ago)
Author:
rolandsteiner@chromium.org
Message:

r109563 caused perf regression
https://bugs.webkit.org/show_bug.cgi?id=80404

Add test for Element or ShadowRoot.

Reviewed by Antti Koivisto.

No new tests. (fix)

  • css/CSSStyleSelector.cpp:

(WebCore::CSSStyleSelector::pushParentElement):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109905 r109906  
     12012-03-06  Roland Steiner  <rolandsteiner@chromium.org>
     2
     3        r109563 caused perf regression
     4        https://bugs.webkit.org/show_bug.cgi?id=80404
     5
     6        Add test for Element or ShadowRoot.
     7
     8        Reviewed by Antti Koivisto.
     9
     10        No new tests. (fix)
     11
     12        * css/CSSStyleSelector.cpp:
     13        (WebCore::CSSStyleSelector::pushParentElement):
     14
    1152012-03-06  Pavel Podivilov  <podivilov@chromium.org>
    216
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r109785 r109906  
    552552void CSSStyleSelector::pushParentElement(Element* parent)
    553553{
    554     const ContainerNode* parentsParent = parent->parentOrHostNode();
     554    const ContainerNode* parentsParent = parent->parentOrHostElement();
     555
    555556    // We are not always invoked consistently. For example, script execution can cause us to enter
    556557    // style recalc in the middle of tree building. We may also be invoked from somewhere within the tree.
     
    561562    else
    562563        m_checker.pushParent(parent);
    563     pushScope(parent, parentsParent);
     564
     565    // Note: We mustn't skip ShadowRoot nodes for the scope stack.
     566    pushScope(parent, parent->parentOrHostNode());
    564567}
    565568
Note: See TracChangeset for help on using the changeset viewer.