Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9e041b08028e64a7b5eebdb80140c1254bb4f618
      
https://github.com/WebKit/WebKit/commit/9e041b08028e64a7b5eebdb80140c1254bb4f618
  Author: Frédéric Wang <[email protected]>
  Date:   2025-10-09 (Thu, 09 Oct 2025)

  Changed paths:
    M Source/WebKit/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in

  Log Message:
  -----------
  Fix UncountedCallArgs error in GeneratedSerializers.mm
https://bugs.webkit.org/show_bug.cgi?id=300311

Reviewed by Ryosuke Niwa.

The checker seems enable to determine that *image is a smart pointer
on the stack and replacing auto with an explicit type
std::optional<Ref<WebCore::Image>> does not help. So use an an
explicit Ref instead.

std::optional<WebCore::Cursor::CustomCursorIPCData> 
ArgumentCoder<WebCore::Cursor::CustomCursorIPCData>::decode(Decoder& decoder)
{
    auto image = decoder.decode<Ref<WebCore::Image>>();
...
    if (!((*image)->rect().contains(*hotSpot)))

* Source/WebKit/SaferCPPExpectations/UncountedCallArgsCheckerExpectations: 
Update expectation.
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: Use an explicit 
Ref.

Canonical link: https://commits.webkit.org/301297@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

Reply via email to