⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 276748 in webkit


Ignore:
Timestamp:
Apr 28, 2021, 8:55:51 PM (5 years ago)
Author:
rniwa@webkit.org
Message:

Use a WeakHashSet for Document::m_mediaElements
​https://bugs.webkit.org/show_bug.cgi?id=225082

Unreviewed. Address the review comments by Chris & Darin.

  • dom/Document.cpp:

(WebCore::Document::forEachMediaElement):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r276747 r276748  
     12021-04-28  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Use a WeakHashSet for Document::m_mediaElements
     4        https://bugs.webkit.org/show_bug.cgi?id=225082
     5
     6        Unreviewed. Address the review comments by Chris & Darin.
     7
     8        * dom/Document.cpp:
     9        (WebCore::Document::forEachMediaElement):
     10
    1112021-04-28  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Source/WebCore/dom/Document.cpp

    r276744 r276748  
    18731873    ASSERT(!m_mediaElements.hasNullReferences());
    18741874    m_mediaElements.forEach([&](auto& element) {
    1875         auto protectedElement = makeRef(element);
    1876         function(element);
     1875        function(makeRef(element));
    18771876    });
    18781877}
Note: See TracChangeset for help on using the changeset viewer.