Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9e61a8160a2345eddfa61dc4af41d4ac2f2c2842
      
https://github.com/WebKit/WebKit/commit/9e61a8160a2345eddfa61dc4af41d4ac2f2c2842
  Author: Sam Weinig <[email protected]>
  Date:   2026-10-07 (Wed, 07 Oct 2026)

  Changed paths:
    M Source/WebCore/loader/cache/CachedImage.cpp
    M Source/WebCore/loader/cache/CachedImage.h
    M Source/WebCore/rendering/svg/RenderSVGImage.cpp
    M Source/WebCore/rendering/svg/SVGImageIntrinsicSizing.cpp
    M Source/WebCore/rendering/svg/SVGImageIntrinsicSizing.h
    M Source/WebCore/rendering/svg/legacy/LegacyRenderSVGImage.cpp
    M Source/WebCore/svg/graphics/SVGImage.cpp
    M Source/WebCore/svg/graphics/SVGImage.h

  Log Message:
  -----------
  [Image Redux] Remove CachedImage image size functions
https://bugs.webkit.org/show_bug.cgi?id=326675

Reviewed by Tim Nguyen.

The last uses of the CachedImage image size functions were RenderSVGImage and 
LegacyRenderSVGImage which used
CachedImage::clampedImageSize() in their preserveAspectRatio=none special case. 
We can instead use the natural
dimensions directly, allowing us to remove all the CachedImage image size 
functions.

With CachedImage::imageSize() gone, the last use of 
SVGImage::resolvedIntrinsicSize() is also removed so it
is removed as well.

* Source/WebCore/loader/cache/CachedImage.cpp:
* Source/WebCore/loader/cache/CachedImage.h:
* Source/WebCore/rendering/svg/RenderSVGImage.cpp:
* Source/WebCore/rendering/svg/SVGImageIntrinsicSizing.cpp:
* Source/WebCore/rendering/svg/SVGImageIntrinsicSizing.h:
* Source/WebCore/rendering/svg/legacy/LegacyRenderSVGImage.cpp:
* Source/WebCore/svg/graphics/SVGImage.cpp:
* Source/WebCore/svg/graphics/SVGImage.h:

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



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

Reply via email to