Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 89c1b8e055c79c53c32f3ada9ef9471d08b75ca2
      
https://github.com/WebKit/WebKit/commit/89c1b8e055c79c53c32f3ada9ef9471d08b75ca2
  Author: Ahmad Saleem <ahmad.saleem792+git...@gmail.com>
  Date:   2025-08-06 (Wed, 06 Aug 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/svg/coordinate-systems/outer-svg-intrinsic-size-001-expected.txt
    M Source/WebCore/svg/SVGSVGElement.cpp

  Log Message:
  -----------
  WebKit doesn't resize SVG element in response to viewBox change (with height 
specified and width unspecified)
https://bugs.webkit.org/show_bug.cgi?id=198609
rdar://51486522

Reviewed by Nikolas Zimmermann.

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

This patch ensures that we set 'setNeedsLayoutIfNeededAfterIntrinsicSizeChange'
for viewBox via svgAttributeChanged in case of dynamically changing the viewBox
attribute of the <svg> root.

* Source/WebCore/svg/SVGSVGElement.cpp:
(WebCore::SVGSVGElement::svgAttributeChanged):
* 
LayoutTests/imported/w3c/web-platform-tests/svg/coordinate-systems/outer-svg-intrinsic-size-001-expected.txt:
 Progression for both LegacySVG and LBSE

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to