Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c85641800591028c9a9e231f54e0146e1b55d97a
https://github.com/WebKit/WebKit/commit/c85641800591028c9a9e231f54e0146e1b55d97a
Author: Sam Weinig <[email protected]>
Date: 2026-10-10 (Sat, 10 Oct 2026)
Changed paths:
M Source/WebCore/platform/graphics/ImageAdapter.cpp
M Source/WebCore/platform/graphics/ImageAdapter.h
M Source/WebCore/platform/graphics/cocoa/ImageAdapterCocoa.mm
M Source/WebCore/platform/graphics/win/ImageAdapterWin.cpp
M Source/WebCore/platform/graphics/win/cairo/ImageAdapterWinCairo.cpp
Log Message:
-----------
[Image Redux] Add overloads in ImageAdapter that take a concrete object size
and image extras
https://bugs.webkit.org/show_bug.cgi?id=327048
Reviewed by Darin Adler.
Adds overloads for ImageAdapter's nsImage(), snapshotNSImage(),
tiffRepresentation(), getHBITMAP() and getHBITMAPOfSize()
that take ConcreteImageSize and ImageDrawingExtras. Eventually, only these
overloads will remain, but while we transition
to that, the old, no parameter version remain and continue to call
Image::size().
Due to taking parameters that can alter the drawing, the caches for the
rasterized copies now need to be keyed on the input.
* Source/WebCore/platform/graphics/ImageAdapter.cpp:
* Source/WebCore/platform/graphics/ImageAdapter.h:
* Source/WebCore/platform/graphics/cocoa/ImageAdapterCocoa.mm:
* Source/WebCore/platform/graphics/win/ImageAdapterWin.cpp:
* Source/WebCore/platform/graphics/win/cairo/ImageAdapterWinCairo.cpp:
Canonical link: https://commits.webkit.org/323336@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications