Skip to content

Commit fe3ff01

Browse files
committed
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: Canonical link: https://commits.webkit.org/200233@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 029450f commit fe3ff01

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

Source/WebKit/ChangeLog

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2018-04-17 Conrad Shultz <[email protected]>
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+
115
2018-04-17 Wenson Hsieh <[email protected]>
216

317
[Extra zoom mode] Double tap to zoom should account for text legibility in extra zoom mode

Source/WebKit/UIProcess/mac/DisplayLink.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
namespace WebKit {
3737

3838
DisplayLink::DisplayLink(WebCore::PlatformDisplayID displayID, WebPageProxy& webPageProxy)
39-
: m_webPageProxy(webPageProxy)
4039
{
4140
RELEASE_ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
4241
CVReturn error = CVDisplayLinkCreateWithCGDisplay(displayID, &m_displayLink);

Source/WebKit/UIProcess/mac/DisplayLink.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ class DisplayLink {
4949
static CVReturn displayLinkCallback(CVDisplayLinkRef, const CVTimeStamp*, const CVTimeStamp*, CVOptionFlags, CVOptionFlags*, void* data);
5050

5151
CVDisplayLinkRef m_displayLink { nullptr };
52-
Ref<WebPageProxy> m_webPageProxy;
5352
HashSet<unsigned> m_observers;
5453
};
5554

0 commit comments

Comments
 (0)