Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVGSMILElement should use WeakPtr & WeakHashMap instead of raw pointers #3700

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

rniwa
Copy link
Member

@rniwa rniwa commented Aug 26, 2022

c9d4802

SVGSMILElement should use WeakPtr & WeakHashMap instead of raw pointers
https://bugs.webkit.org/show_bug.cgi?id=244385

Reviewed by Chris Dumez.

Replaced a raw pointer and a HashSet of raw pointers by WeakPtr and WeakHashMap.

* Source/WebCore/svg/animation/SVGSMILElement.cpp:
(WebCore::SVGSMILElement::SVGSMILElement):
(WebCore::SVGSMILElement::~SVGSMILElement):
(WebCore::SVGSMILElement::reset):
(WebCore::SVGSMILElement::setAttributeName):
(WebCore::SVGSMILElement::setTargetElement):
(WebCore::SVGSMILElement::progress):
(WebCore::SVGSMILElement::notifyDependentsIntervalChanged):
(WebCore::SVGSMILElement::addTimeDependent):
(WebCore::SVGSMILElement::removeTimeDependent):
* Source/WebCore/svg/animation/SVGSMILElement.h:
(WebCore::SVGSMILElement::targetElement const):

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

397eb34

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim   πŸ›  mac-debug   πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ›  mac-AS-debug   πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ api-mac   πŸ§ͺ api-gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk1
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2
βœ… πŸ›  watch ❌ πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  πŸ§ͺ unsafe-merge βœ… πŸ›  watch-sim βœ… πŸ§ͺ mac-wk2-stress

@rniwa rniwa self-assigned this Aug 26, 2022
@rniwa rniwa added SVG For bugs in the SVG implementation. WebKit Nightly Build labels Aug 26, 2022
@rniwa rniwa requested a review from grorg August 26, 2022 08:22
Copy link
Contributor

@cdumez cdumez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Aug 26, 2022
@rniwa rniwa added unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing and removed merging-blocked Applied to prevent a change from being merged labels Aug 26, 2022
https://bugs.webkit.org/show_bug.cgi?id=244385

Reviewed by Chris Dumez.

Replaced a raw pointer and a HashSet of raw pointers by WeakPtr and WeakHashMap.

* Source/WebCore/svg/animation/SVGSMILElement.cpp:
(WebCore::SVGSMILElement::SVGSMILElement):
(WebCore::SVGSMILElement::~SVGSMILElement):
(WebCore::SVGSMILElement::reset):
(WebCore::SVGSMILElement::setAttributeName):
(WebCore::SVGSMILElement::setTargetElement):
(WebCore::SVGSMILElement::progress):
(WebCore::SVGSMILElement::notifyDependentsIntervalChanged):
(WebCore::SVGSMILElement::addTimeDependent):
(WebCore::SVGSMILElement::removeTimeDependent):
* Source/WebCore/svg/animation/SVGSMILElement.h:
(WebCore::SVGSMILElement::targetElement const):

Canonical link: https://commits.webkit.org/253836@main
@webkit-commit-queue
Copy link
Collaborator

Committed 253836@main (c9d4802): https://commits.webkit.org/253836@main

Reviewed commits have been landed. Closing PR #3700 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit c9d4802 into WebKit:main Aug 26, 2022
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Aug 26, 2022
@rniwa rniwa deleted the fix244385 branch September 21, 2022 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SVG For bugs in the SVG implementation.
Projects
None yet
5 participants