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

Changeset 230747 in webkit


Ignore:
Timestamp:
Apr 17, 2018, 8:07:10 PM (8 years ago)
Author:
Conrad Shultz
Message:

WebKit::DisplayLink maintains a strong reference to WebPageProxy, creating a reference cycle
https://bugs.webkit.org/show_bug.cgi?id=184718

Reviewed by Tim Horton.

It turns out that the m_webPageProxy back-reference in DisplayLink, which was creating a
reference cycle, wasn't ever read, so we can just remove it.

  • UIProcess/mac/DisplayLink.cpp:

(WebKit::DisplayLink::DisplayLink):

  • UIProcess/mac/DisplayLink.h:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r230746 r230747  
     12018-04-17  Conrad Shultz  <conrad_shultz@apple.com>
     2
     3        WebKit::DisplayLink maintains a strong reference to WebPageProxy, creating a reference cycle
     4        https://bugs.webkit.org/show_bug.cgi?id=184718
     5
     6        Reviewed by Tim Horton.
     7
     8        It turns out that the m_webPageProxy back-reference in DisplayLink, which was creating a
     9        reference cycle, wasn't ever read, so we can just remove it.
     10
     11        * UIProcess/mac/DisplayLink.cpp:
     12        (WebKit::DisplayLink::DisplayLink):
     13        * UIProcess/mac/DisplayLink.h:
     14
    1152018-04-17  Wenson Hsieh  <wenson_hsieh@apple.com>
    216
  • trunk/Source/WebKit/UIProcess/mac/DisplayLink.cpp

    r230468 r230747  
    3737   
    3838DisplayLink::DisplayLink(WebCore::PlatformDisplayID displayID, WebPageProxy& webPageProxy)
    39     : m_webPageProxy(webPageProxy)
    4039{
    4140    RELEASE_ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
  • trunk/Source/WebKit/UIProcess/mac/DisplayLink.h

    r229707 r230747  
    5050   
    5151    CVDisplayLinkRef m_displayLink { nullptr };
    52     Ref<WebPageProxy> m_webPageProxy;
    5352    HashSet<unsigned> m_observers;
    5453};
Note: See TracChangeset for help on using the changeset viewer.