[webkit-changes] [WebKit/WebKit] e7f78c: Remove zoom special casing of SVG when computing b...

Ahmad Saleem noreply at github.com
Sat Jan 21 08:59:38 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e7f78cb4cd8136f0b3c6e0c02b36009022514452
      https://github.com/WebKit/WebKit/commit/e7f78cb4cd8136f0b3c6e0c02b36009022514452
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  Date:   2023-01-21 (Sat, 21 Jan 2023)

  Changed paths:
    A LayoutTests/fast/css/border-image-widths-on-svg-with-zoom-expected.html
    A LayoutTests/fast/css/border-image-widths-on-svg-with-zoom.html
    M Source/WebCore/css/CSSToStyleMap.cpp
    M Source/WebCore/css/CSSToStyleMap.h

  Log Message:
  -----------
  Remove zoom special casing of SVG when computing border-widths

Remove zoom special casing of SVG when computing border-widths
https://bugs.webkit.org/show_bug.cgi?id=250048

Reviewed by Tim Nguyen.

This patch is to align WebKit with Gecko / Firefox and Blink / Chromium.

Merge - https://chromium.googlesource.com/chromium/blink/+/972c6ca7b5ffa48a099b53cfc720a0aef3bf850e

This patch removes special casing of zooming of SVG when computing
border-width, where border-widths value does not scale with zoom level
for SVG elements. It was quirk which was removed from Blink in 2014 to
match with Firefox since it was not supported by any web-specification.

* Source/WebCore/css/CSSToStyleMap.cpp:
(useSVGZoomRules): Removed
(CSSToStyleMap::mapNinePieceImageQuad): Remove 'useSVGZoomRules' special casing
* Source/WebCore/css/CSSToStyleMap.h: Remove 'useSVGZoomRules'
* LayoutTests/fast/css/border-image-widths-on-svg-with-zoom.html: Add Test Case
* LayoutTests/fast/css/border-image-widths-on-svg-with-zoom-expected.html: Add Test Case Expectation

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




More information about the webkit-changes mailing list