[webkit-changes] [WebKit/WebKit] 6d7d6a: [Skia] Fix GraphicsContextSkia::setLineDash when o...

Pawel Lampe noreply at github.com
Wed Apr 3 04:52:24 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6d7d6a2d4ee87c3942ae1088f7412658fa8866d8
      https://github.com/WebKit/WebKit/commit/6d7d6a2d4ee87c3942ae1088f7412658fa8866d8
  Author: Pawel Lampe <plampe at igalia.com>
  Date:   2024-04-03 (Wed, 03 Apr 2024)

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

  Log Message:
  -----------
  [Skia] Fix GraphicsContextSkia::setLineDash when odd number of elements is provided
https://bugs.webkit.org/show_bug.cgi?id=271760

Reviewed by Carlos Garcia Campos.

The spec states that if an odd number of elements is provided within dash array,
the array should be repeated to yield an even number of elements.
Therefore e.g. 1,2,3 should become 1,2,3,1,2,3.
* Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp:
(WebCore::GraphicsContextSkia::setLineDash):

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