Changeset 165566 in webkit


Ignore:
Timestamp:
Mar 13, 2014 2:27:47 PM (10 years ago)
Author:
Antti Koivisto
Message:

Try to stop asserts in debug build.

  • dom/Node.cpp:

(WebCore::Document::invalidateNodeListAndCollectionCaches):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r165563 r165566  
     12014-03-13  Antti Koivisto  <antti@apple.com>
     2
     3        Try to stop asserts in debug build.
     4
     5        * dom/Node.cpp:
     6        (WebCore::Document::invalidateNodeListAndCollectionCaches):
     7
    182014-03-13  Benjamin Poulain  <bpoulain@apple.com>
    29
  • trunk/Source/WebCore/dom/Node.cpp

    r165546 r165566  
    725725    m_inInvalidateNodeListAndCollectionCaches = true;
    726726#endif
    727     for (auto* list : std::move(m_listsInvalidatedAtDocument))
     727    HashSet<LiveNodeList*> lists = std::move(m_listsInvalidatedAtDocument);
     728    for (auto* list : lists)
    728729        list->invalidateCache(attrName);
    729     for (auto* list : std::move(m_collectionsInvalidatedAtDocument))
    730         list->invalidateCache(attrName);
     730    HashSet<HTMLCollection*> collections = std::move(m_collectionsInvalidatedAtDocument);
     731    for (auto* collection : collections)
     732        collection->invalidateCache(attrName);
    731733#if !ASSERT_DISABLED
    732734    m_inInvalidateNodeListAndCollectionCaches = false;
Note: See TracChangeset for help on using the changeset viewer.