Changeset 91422 in webkit


Ignore:
Timestamp:
Jul 20, 2011, 4:33:04 PM (14 years ago)
Author:
Lucas Forschler
Message:

Merge r87827.

Location:
branches/safari-534.51-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-534.51-branch/Source/WebCore/ChangeLog

    r91420 r91422  
     12011-07-20  Lucas Forschler  <lforschler@apple.com>
     2
     3    Merged 87827.
     4
     5    2011-06-01  Abhishek Arya  <inferno@chromium.org>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        Do not use the pushed style selector if it is not equal to the
     10        parent document's style selector. It usually means that it is
     11        in a bad state, e.g. already cleared.
     12        https://bugs.webkit.org/show_bug.cgi?id=61737
     13
     14        * dom/Element.cpp:
     15        (WebCore::StyleSelectorParentPusher::~StyleSelectorParentPusher):
     16
    1172011-07-20  Lucas Forschler  <lforschler@apple.com>
    218
  • branches/safari-534.51-branch/Source/WebCore/dom/Element.cpp

    r88492 r91422  
    9191        if (!m_pushedStyleSelector)
    9292            return;
     93
     94        // This tells us that our pushed style selector is in a bad state,
     95        // so we should just bail out in that scenario.
    9396        ASSERT(m_pushedStyleSelector == m_parent->document()->styleSelector());
     97        if (m_pushedStyleSelector != m_parent->document()->styleSelector())
     98            return;
     99
    94100        m_pushedStyleSelector->popParent(m_parent);
    95101    }
Note: See TracChangeset for help on using the changeset viewer.