Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 49d0277bea146a20ffb63091626e1b9222c3ac3b
      
https://github.com/WebKit/WebKit/commit/49d0277bea146a20ffb63091626e1b9222c3ac3b
  Author: Sam Weinig <[email protected]>
  Date:   2026-10-03 (Sat, 03 Oct 2026)

  Changed paths:
    A 
LayoutTests/http/wpt/largest-contentful-paint/svg-image-with-natural-width-only-expected.txt
    A 
LayoutTests/http/wpt/largest-contentful-paint/svg-image-with-natural-width-only.html
    M Source/WebCore/page/LargestContentfulPaintData.cpp

  Log Message:
  -----------
  [Image Redux] Match spec and use natural dimensions in 
LargestContentfulPaintData::effectiveVisualArea
https://bugs.webkit.org/show_bug.cgi?id=326220

Reviewed by Simon Fraser.

Match the spec and use natural dimensions in 
LargestContentfulPaintData::effectiveVisualArea().
This causes a subtle change in behavior for SVG images with a single dimension 
specified which
is tested in the new layout test.

Test: http/wpt/largest-contentful-paint/svg-image-with-natural-width-only.html
* 
LayoutTests/http/wpt/largest-contentful-paint/svg-image-with-natural-width-only-expected.txt:
 Added.
* 
LayoutTests/http/wpt/largest-contentful-paint/svg-image-with-natural-width-only.html:
 Added.
* Source/WebCore/page/LargestContentfulPaintData.cpp:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to