[webkit-changes] [WebKit/WebKit] 7fef3d: Use WeakPtr in VisitedLinkTableController

Ryosuke Niwa noreply at github.com
Tue Aug 1 18:23:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7fef3d7581017a8c627ed62167d8e2621f8d3188
      https://github.com/WebKit/WebKit/commit/7fef3d7581017a8c627ed62167d8e2621f8d3188
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/VisitedLinkTableController.cpp
    M Source/WebKit/WebProcess/WebPage/VisitedLinkTableController.h

  Log Message:
  -----------
  Use WeakPtr in VisitedLinkTableController
https://bugs.webkit.org/show_bug.cgi?id=259711

Reviewed by Chris Dumez.

Use WeakPtr instead of raw pointers to keep track of all VisitedLinkTableControllers.

* Source/WebKit/WebProcess/WebPage/VisitedLinkTableController.cpp:
(WebKit::visitedLinkTableControllers):
(WebKit::VisitedLinkTableController::getOrCreate):
* Source/WebKit/WebProcess/WebPage/VisitedLinkTableController.h:

Canonical link: https://commits.webkit.org/266500@main




More information about the webkit-changes mailing list