[webkit-changes] [WebKit/WebKit] 2f897e: REGRESSION(278195 at main): A bitmap image may get th...

Said Abou-Hallawa noreply at github.com
Thu Aug 1 15:21:04 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2f897eb8b8385adf9e4d3b9b975f71ba4b700f26
      https://github.com/WebKit/WebKit/commit/2f897eb8b8385adf9e4d3b9b975f71ba4b700f26
  Author: Said Abou-Hallawa <said at apple.com>
  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 at 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


More information about the webkit-changes mailing list