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

  Changed paths:
    M Source/WebCore/rendering/BackgroundPainter.cpp
    M Source/WebCore/rendering/BorderPainter.cpp
    M Source/WebCore/rendering/RenderImage.cpp
    M Source/WebCore/rendering/RenderImage.h
    M Source/WebCore/rendering/shapes/ShapeOutsideInfo.cpp
    M Source/WebCore/style/values/images/kinds/StyleCachedImage.cpp
    M Source/WebCore/style/values/images/kinds/StyleCachedImage.h
    M Source/WebCore/style/values/images/kinds/StyleCanvasImage.cpp
    M Source/WebCore/style/values/images/kinds/StyleCanvasImage.h
    M Source/WebCore/style/values/images/kinds/StyleColorImage.cpp
    M Source/WebCore/style/values/images/kinds/StyleColorImage.h
    M Source/WebCore/style/values/images/kinds/StyleCrossfadeImage.cpp
    M Source/WebCore/style/values/images/kinds/StyleCrossfadeImage.h
    M Source/WebCore/style/values/images/kinds/StyleFilterImage.cpp
    M Source/WebCore/style/values/images/kinds/StyleFilterImage.h
    M Source/WebCore/style/values/images/kinds/StyleGeneratedImage.cpp
    M Source/WebCore/style/values/images/kinds/StyleGeneratedImage.h
    M Source/WebCore/style/values/images/kinds/StyleGradientImage.cpp
    M Source/WebCore/style/values/images/kinds/StyleGradientImage.h
    M Source/WebCore/style/values/images/kinds/StyleImage.h
    M Source/WebCore/style/values/images/kinds/StyleInvalidImage.cpp
    M Source/WebCore/style/values/images/kinds/StyleInvalidImage.h
    M Source/WebCore/style/values/images/kinds/StyleMultiImage.cpp
    M Source/WebCore/style/values/images/kinds/StyleMultiImage.h
    M Source/WebCore/style/values/images/kinds/StyleNamedImage.cpp
    M Source/WebCore/style/values/images/kinds/StyleNamedImage.h
    M Source/WebCore/style/values/images/kinds/StylePaintImage.cpp
    M Source/WebCore/style/values/images/kinds/StylePaintImage.h

  Log Message:
  -----------
  [Image Redux] Remove another tranche of unused image size functions
https://bugs.webkit.org/show_bug.cgi?id=326618

Reviewed by Anne van Kesteren.

Removes:
  - RenderImage::imageSizeAsRendered()
  - Style::Image::imageSize()
  - Style::Image::setContainerSizeForRenderer()
  - Style::GeneratedImage::fixedSize()

The story goes like this. The last caller of Style::Image::imageSize() was 
Style::FilterImage::fixedSize(),
but Style::FilterImage::fixedSize(), was only called by 
Style::GeneratedImage::imageSize(). So, they were
all just only calling each other and otherwise dead.

With Style::GeneratedImage::fixedSize() gone, so too could 
Style::GeneratedImage's subclasses isFixedSize
flag be removed.

The only real override of Style::Image::setContainerSizeForRenderer(), the one 
in Style::CachedImage, set
m_containerSize, which was only read by Style::CachedImage::imageSize(), which 
you will remember we
removed above, so setContainerSizeForRenderer() and the m_containerSize member 
could be removed as well.

Also in Style::CachedImage::imageSize() was the last call to 
RenderImage::imageSizeAsRendered(), giving
us one more function to remove.

* Source/WebCore/rendering/BackgroundPainter.cpp:
* Source/WebCore/rendering/BorderPainter.cpp:
* Source/WebCore/rendering/RenderImage.cpp:
* Source/WebCore/rendering/RenderImage.h:
* Source/WebCore/rendering/shapes/ShapeOutsideInfo.cpp:
* Source/WebCore/style/values/images/kinds/StyleCachedImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleCachedImage.h:
* Source/WebCore/style/values/images/kinds/StyleCanvasImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleCanvasImage.h:
* Source/WebCore/style/values/images/kinds/StyleColorImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleColorImage.h:
* Source/WebCore/style/values/images/kinds/StyleCrossfadeImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleCrossfadeImage.h:
* Source/WebCore/style/values/images/kinds/StyleFilterImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleFilterImage.h:
* Source/WebCore/style/values/images/kinds/StyleGeneratedImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleGeneratedImage.h:
* Source/WebCore/style/values/images/kinds/StyleGradientImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleGradientImage.h:
* Source/WebCore/style/values/images/kinds/StyleImage.h:
* Source/WebCore/style/values/images/kinds/StyleInvalidImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleInvalidImage.h:
* Source/WebCore/style/values/images/kinds/StyleMultiImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleMultiImage.h:
* Source/WebCore/style/values/images/kinds/StyleNamedImage.cpp:
* Source/WebCore/style/values/images/kinds/StyleNamedImage.h:
* Source/WebCore/style/values/images/kinds/StylePaintImage.cpp:
* Source/WebCore/style/values/images/kinds/StylePaintImage.h:

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



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

Reply via email to