Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2f897eb8b8385adf9e4d3b9b975f71ba4b700f26
https://github.com/WebKit/WebKit/commit/2f897eb8b8385adf9e4d3b9b975f71ba4b700f26
Author: Said Abou-Hallawa <[email protected]>
Date: 2024-08-01 (Thu, 01 Aug 2024)
Changed paths:
M Source/WebCore/platform/graphics/BitmapImageDescriptor.cpp
M Source/WebCore/platform/graphics/BitmapImageDescriptor.h
M Source/WebCore/platform/graphics/BitmapImageSource.h
M Source/WebCore/platform/graphics/ImageSource.h
M Source/WebCore/platform/graphics/NativeImageSource.h
Log Message:
-----------
REGRESSION(278195@main): A bitmap image may get the size of a subsampled frame
https://bugs.webkit.org/show_bug.cgi?id=277495
rdar://129703072
Reviewed by Simon Fraser.
To get the size of an image, the default frame has to be queried from
ImageDecoder.
A subsampled frame should not be used to get the size of an image.
* Source/WebCore/platform/graphics/BitmapImageDescriptor.cpp:
(WebCore::BitmapImageDescriptor::primaryImageFrameMetadata const):
(WebCore::BitmapImageDescriptor::sourceSize const):
(WebCore::BitmapImageDescriptor::densityCorrectedSize const):
* Source/WebCore/platform/graphics/BitmapImageDescriptor.h:
* Source/WebCore/platform/graphics/BitmapImageSource.h:
* Source/WebCore/platform/graphics/ImageSource.h:
(WebCore::ImageSource::currentImageFrame):
* Source/WebCore/platform/graphics/NativeImageSource.h:
Canonical link: https://commits.webkit.org/281731@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes