[webkit-changes] [WebKit/WebKit] 255da9: border-image-repeat:round output doesn't match oth...

Commit Queue noreply at github.com
Mon Mar 20 18:25:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 255da9f55bbe24f4aa7944e2bdd5768d4f0d5f01
      https://github.com/WebKit/WebKit/commit/255da9f55bbe24f4aa7944e2bdd5768d4f0d5f01
  Author: Brent Fulgham <bfulgham at webkit.org>
  Date:   2023-03-20 (Mon, 20 Mar 2023)

  Changed paths:
    M LayoutTests/TestExpectations
    M LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/border-image-repeat-round.html
    M LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/border-image-round-and-stretch.html
    M LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/border-image-slice-percentage.html
    M LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/border-image-space-001.html
    M LayoutTests/platform/gtk/TestExpectations
    M LayoutTests/platform/wpe/TestExpectations
    M Source/WebCore/platform/graphics/Image.cpp

  Log Message:
  -----------
  border-image-repeat:round output doesn't match other browsers
https://bugs.webkit.org/show_bug.cgi?id=155955
<rdar://problem/28213711>

Reviewed by Tim Nguyen.

The RoundTile and SpaceTile didn't take the scale factors computed in NinePieceImage,
so would arrive at incorrect counts. This caused the logic to scale images when it
should have left them unscaled, and simply tiled (or spaced) the elements.

This change progresses four WPT tests:
(1) border-image-repeat-round.html
(2) border-image-round-and-stretch.html
(3) border-image-slice-percentage-test.html
(4) border-image-space-001.html

* Source/WebCore/platform/graphics/Image.cpp:
(WebCore::Image::drawTiled):

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




More information about the webkit-changes mailing list