Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 372b21fd954177d09e408954276cf1201cdf9da7 https://github.com/WebKit/WebKit/commit/372b21fd954177d09e408954276cf1201cdf9da7 Author: Ahmad Saleem <ahmad.saleem792+git...@gmail.com> Date: 2025-08-06 (Wed, 06 Aug 2025)
Changed paths: M LayoutTests/TestExpectations M Source/WebCore/rendering/svg/RenderSVGRoot.cpp M Source/WebCore/rendering/svg/legacy/LegacyRenderSVGRoot.cpp Log Message: ----------- [SVG] Use `currentViewBoxRect()` for intrinsic ratio calculation https://bugs.webkit.org/show_bug.cgi?id=296548 rdar://problem/157445966 Reviewed by Brent Fulgham. This patch aligns WebKit with Gecko / Firefox and Blink / Chromium. This patch updates computeIntrinsicSizeAndPreferredAspectRatio() to use currentViewBoxRect() when computing the intrinsic aspect ratio. This ensures that an <svg> element referencing a <view> (via fragment identifier) correctly derives its aspect ratio from the viewBox defined in the <view> element. * Source/WebCore/rendering/svg/RenderSVGRoot.cpp: (WebCore::RenderSVGRoot::computeIntrinsicSizeAndPreferredAspectRatio const): * Source/WebCore/rendering/svg/legacy/LegacyRenderSVGRoot.cpp: (WebCore::LegacyRenderSVGRoot::computeIntrinsicSizeAndPreferredAspectRatio const): * LayoutTests/TestExpectations: Progression on both LegacySVG and LBSE Canonical link: https://commits.webkit.org/298307@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