[webkit-changes] [WebKit/WebKit] eac1cc: [skia] Fix build creating an instance of std::span...

Pablo Saavedra Rodiño noreply at github.com
Tue May 7 03:43:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: eac1ccc9707fa66eb447d8ca5a0f4df697e23ba7
      https://github.com/WebKit/WebKit/commit/eac1ccc9707fa66eb447d8ca5a0f4df697e23ba7
  Author: Pablo Saavedra <psaavedra at igalia.com>
  Date:   2024-05-07 (Tue, 07 May 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/skia/GlyphPageSkia.cpp

  Log Message:
  -----------
  [skia] Fix build creating an instance of std::span for the StringView constructor
https://bugs.webkit.org/show_bug.cgi?id=273616

Reviewed by Alejandro G. Castro.

Fixes error: class template placeholder 'std::span' not permitted in this context

The StringView constructor is overloaded and there are several constructors that
could potentially take a std::span. The use of {} may not provide enough information
for the compiler to unambiguously choose a constructor.

The constructor of std::span explicitly makes it easier for the compiler to deduce
the template arguments correctly.

* Source/WebCore/platform/graphics/skia/GlyphPageSkia.cpp:
(WebCore::GlyphPage::fill):

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