[webkit-changes] [WebKit/WebKit] e05428: [Canvas] Adopt smart pointers in ContextSwitcher c...

Claudio Saavedra noreply at github.com
Sat Sep 28 01:00:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e054280ec9c0e15e50022ba4e8ad55e9c1f0e9d0
      https://github.com/WebKit/WebKit/commit/e054280ec9c0e15e50022ba4e8ad55e9c1f0e9d0
  Author: Claudio Saavedra <csaavedra at igalia.com>
  Date:   2024-09-28 (Sat, 28 Sep 2024)

  Changed paths:
    M Source/WebCore/html/canvas/CanvasFilterContextSwitcher.cpp
    M Source/WebCore/html/canvas/CanvasFilterContextSwitcher.h
    M Source/WebCore/html/canvas/CanvasLayerContextSwitcher.cpp
    M Source/WebCore/html/canvas/CanvasLayerContextSwitcher.h

  Log Message:
  -----------
  [Canvas] Adopt smart pointers in ContextSwitcher classes
https://bugs.webkit.org/show_bug.cgi?id=280510

Reviewed by Chris Dumez.

Use a WeakRef instead of a raw reference for contexts,
preventing static analyzer warnings of uncounted class
members.

* Source/WebCore/html/canvas/CanvasFilterContextSwitcher.cpp:
(WebCore::CanvasFilterContextSwitcher::CanvasFilterContextSwitcher):
(WebCore::CanvasFilterContextSwitcher::~CanvasFilterContextSwitcher):
(WebCore::CanvasFilterContextSwitcher::expandedBounds const):
* Source/WebCore/html/canvas/CanvasFilterContextSwitcher.h:
(WebCore::CanvasFilterContextSwitcher::protectedContext const):
* Source/WebCore/html/canvas/CanvasLayerContextSwitcher.cpp:
(WebCore::CanvasLayerContextSwitcher::CanvasLayerContextSwitcher):
(WebCore::CanvasLayerContextSwitcher::outsets const):
* Source/WebCore/html/canvas/CanvasLayerContextSwitcher.h:
(WebCore::CanvasLayerContextSwitcher::protectedContext const):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list