Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dba2ce6f78e3fc773e03fb3520cca06d4fd637d4
      
https://github.com/WebKit/WebKit/commit/dba2ce6f78e3fc773e03fb3520cca06d4fd637d4
  Author: Sam Weinig <[email protected]>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    A Source/WebCore/platform/graphics/AspectRatioFit.h
    M Source/WebCore/platform/graphics/BitmapImage.cpp
    M Source/WebCore/platform/graphics/BitmapImage.h
    A Source/WebCore/platform/graphics/ConcreteObjectSize.h
    M Source/WebCore/platform/graphics/FloatSize.h
    M Source/WebCore/platform/graphics/Image.h
    M Source/WebCore/platform/graphics/LayoutSize.h
    A Source/WebCore/platform/graphics/NaturalDimensions.h
    A Source/WebCore/platform/graphics/ObjectSizeNegotiation.cpp
    A Source/WebCore/platform/graphics/ObjectSizeNegotiation.h
    M Source/WebCore/platform/graphics/cg/PDFDocumentImage.cpp
    M Source/WebCore/platform/graphics/cg/PDFDocumentImage.h
    M Source/WebCore/rendering/RenderReplaced.cpp
    M Source/WebCore/svg/graphics/SVGImage.cpp
    M Source/WebCore/svg/graphics/SVGImage.h
    M Source/WebCore/svg/graphics/SVGImageForContainer.h
    M Tools/TestWebKitAPI/CMakeLists.txt
    M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
    A Tools/TestWebKitAPI/Tests/WebCore/ObjectSizeNegotiationTests.cpp

  Log Message:
  -----------
  [Image Redux] Add NaturalDimensions and ObjectSizeNegotiation
https://bugs.webkit.org/show_bug.cgi?id=325285

Reviewed by Alan Baradlay.

Starts adding infrastructure towards sizing images with the CSS Images 3 object 
size negotiation:
https://drafts.csswg.org/css-images-3/#object-negotiation

Adds utility types and algorithms with basic adoption by WebCore::Image and
its subclasses. No changes in behavior.

Test: Tools/TestWebKitAPI/Tests/WebCore/ObjectSizeNegotiationTests.cpp
* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/platform/graphics/AspectRatioFit.h: Added.
* Source/WebCore/platform/graphics/BitmapImage.cpp:
* Source/WebCore/platform/graphics/BitmapImage.h:
* Source/WebCore/platform/graphics/ConcreteObjectSize.h: Added.
* Source/WebCore/platform/graphics/FloatSize.h:
* Source/WebCore/platform/graphics/Image.h:
* Source/WebCore/platform/graphics/LayoutSize.h:
* Source/WebCore/platform/graphics/NaturalDimensions.h: Added.
* Source/WebCore/platform/graphics/ObjectSizeNegotiation.cpp: Added.
* Source/WebCore/platform/graphics/ObjectSizeNegotiation.h: Added.
* Source/WebCore/platform/graphics/cg/PDFDocumentImage.cpp:
* Source/WebCore/platform/graphics/cg/PDFDocumentImage.h:
* Source/WebCore/rendering/RenderReplaced.cpp:
* Source/WebCore/svg/graphics/SVGImage.cpp:
* Source/WebCore/svg/graphics/SVGImage.h:
* Source/WebCore/svg/graphics/SVGImageForContainer.h:
* Tools/TestWebKitAPI/CMakeLists.txt:
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WebCore/ObjectSizeNegotiationTests.cpp: Added.

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



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

Reply via email to