[webkit-changes] [WebKit/WebKit] ed6873: [MultiRep HEIC] Add support for custom rendering
Aditya Keerthi
noreply at github.com
Fri Feb 16 15:49:13 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ed687398f954fb809436745aa529879d73c579a2
https://github.com/WebKit/WebKit/commit/ed687398f954fb809436745aa529879d73c579a2
Author: Aditya Keerthi <akeerthi at apple.com>
Date: 2024-02-16 (Fri, 16 Feb 2024)
Changed paths:
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/loader/cache/CachedImage.cpp
M Source/WebCore/platform/graphics/Font.h
M Source/WebCore/platform/graphics/GraphicsContext.h
M Source/WebCore/platform/graphics/cocoa/GraphicsContextCocoa.mm
A Source/WebCore/platform/graphics/cocoa/MultiRepresentationHEICMetrics.h
M Source/WebCore/platform/graphics/coretext/FontCoreText.cpp
M Source/WebCore/rendering/RenderImage.cpp
M Source/WebCore/rendering/RenderImage.h
Log Message:
-----------
[MultiRep HEIC] Add support for custom rendering
https://bugs.webkit.org/show_bug.cgi?id=269497
rdar://122975322
Reviewed by Said Abou-Hallawa.
Add custom sizing and baseline support for multi-representation HEIC.
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/loader/cache/CachedImage.cpp:
(WebCore::CachedImage::imageSizeForRenderer const):
* Source/WebCore/platform/graphics/Font.h:
* Source/WebCore/platform/graphics/GraphicsContext.h:
(WebCore::GraphicsContext::drawMultiRepresentationHEIC):
* Source/WebCore/platform/graphics/cocoa/GraphicsContextCocoa.mm:
(WebCore::GraphicsContext::drawMultiRepresentationHEIC):
* Source/WebCore/platform/graphics/cocoa/MultiRepresentationHEICMetrics.h: Added.
(WebCore::MultiRepresentationHEICMetrics::size const):
* Source/WebCore/platform/graphics/coretext/FontCoreText.cpp:
(WebCore::Font::metricsForMultiRepresentationHEIC const):
* Source/WebCore/rendering/RenderImage.cpp:
(WebCore::RenderImage::styleDidChange):
(WebCore::RenderImage::baselinePosition const):
(WebCore::RenderImage::hasAnimatedImage const):
(WebCore::RenderImage::isMultiRepresentationHEIC const):
(WebCore::RenderImage::paintIntoRect):
* Source/WebCore/rendering/RenderImage.h:
Canonical link: https://commits.webkit.org/274890@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