Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fe3ff01

Browse filesBrowse 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
Copy full SHA for fe3ff01

3 files changed

+14-2Lines changed: 14 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Source/WebKit/ChangeLog‎

Copy file name to clipboardExpand all lines: Source/WebKit/ChangeLog
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2018-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+
115
2018-04-17 Wenson Hsieh <wenson_hsieh@apple.com>
216

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

‎Source/WebKit/UIProcess/mac/DisplayLink.cpp‎

Copy file name to clipboardExpand all lines: Source/WebKit/UIProcess/mac/DisplayLink.cpp
-1Lines 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);
Collapse file

‎Source/WebKit/UIProcess/mac/DisplayLink.h‎

Copy file name to clipboardExpand all lines: Source/WebKit/UIProcess/mac/DisplayLink.h
-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.