Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dd2152442c4186e4b1e5da4a686b331c4731acf7
https://github.com/WebKit/WebKit/commit/dd2152442c4186e4b1e5da4a686b331c4731acf7
Author: Gerald Squelart <[email protected]>
Date: 2024-09-09 (Mon, 09 Sep 2024)
Changed paths:
M Source/WTF/wtf/CheckedRef.h
M Source/WebCore/rendering/MarkedText.h
Log Message:
-----------
Ensure that CanMakeCheckedPtr::operator== is only used from sub-class
defaulted operator==
https://bugs.webkit.org/show_bug.cgi?id=279339
rdar://problem/135527745
Reviewed by Chris Dumez.
Add an opt-in template parameter to CanMakeCheckedPtr and
CanMakeThreadSafeCheckedPtr, such that either:
- A derived class that defaults its operator== can safely use
CanMakeCheckedPtrBase::operator==, or
- Other derived classes that don't provide any operator== will not incorrectly
compare equal in all cases.
* Source/WTF/wtf/CheckedRef.h:
(WTF::CanMakeCheckedPtrBase::operator==):
* Source/WebCore/dom/FragmentDirectiveGenerator.cpp:
(WebCore::positionsHaveSameBlockAncestor):
* Source/WebCore/rendering/MarkedText.h:
Canonical link: https://commits.webkit.org/283341@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes