Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c656cc7ac0ca980cc7c9dab8a8f4ea1d04014860
      
https://github.com/WebKit/WebKit/commit/c656cc7ac0ca980cc7c9dab8a8f4ea1d04014860
  Author: Vitor Roriz <[email protected]>
  Date:   2026-03-27 (Fri, 27 Mar 2026)

  Changed paths:
    M Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp

  Log Message:
  -----------
  CanvasRenderingContext2DBase: Use FontFamily::isGeneric() for canvas font 
serialization
https://bugs.webkit.org/show_bug.cgi?id=310945
rdar://173557371

Reviewed by Alan Baradlay.

Now that FontCascadeDescription stores FontFamily structs with FontFamilyKind
(https://commits.webkit.org/310049@main), we can use isGeneric() to determine
whether a font family is a generic keyword instead of string-matching against
known CSS keywords via cssValueKeywordID/isGenericFontFamilyKeyword.

* Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp:
(WebCore::CanvasRenderingContext2DBase::State::fontString const):

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



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

Reply via email to