Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 73969fece772d7963b3d69daf55740d29a15a194
https://github.com/WebKit/WebKit/commit/73969fece772d7963b3d69daf55740d29a15a194
Author: Joanne Pan <[email protected]>
Date: 2026-09-25 (Fri, 25 Sep 2026)
Changed paths:
M Source/WebCore/style/values/images/kinds/StyleCrossfadeImage.cpp
M Source/WebCore/svg/graphics/SVGImage.cpp
M Source/WebCore/svg/graphics/SVGImage.h
M Source/WebCore/svg/graphics/SVGImageCache.cpp
M Source/WebCore/svg/graphics/SVGImageCache.h
M Source/WebCore/svg/graphics/SVGImageForContainer.h
Log Message:
-----------
[AXCustomColorMode] Decide whether an SVG image is changed per use rather
than once at load
https://bugs.webkit.org/show_bug.cgi?id=325216
rdar://188340404
Reviewed by Simon Fraser.
An SVG loaded through <img> renders in its own isolated Page shared by every
use of the file, so
whether its contents are changed is decided once for the whole resource and
cannot vary between
uses. Carry the decision on SVGImage::ContainerContext so each use answers for
itself from the
renderer being drawn, falling back to the resource-wide value for draws with no
container context.
* Source/WebCore/style/values/images/kinds/StyleCrossfadeImage.cpp:
(WebCore::Style::CrossfadeImage::createImage const):
* Source/WebCore/svg/graphics/SVGImage.cpp:
(WebCore::SVGImage::applyInvertContent):
(WebCore::SVGImage::drawForContainer):
(WebCore::SVGImage::dataChanged):
* Source/WebCore/svg/graphics/SVGImage.h:
* Source/WebCore/svg/graphics/SVGImageCache.cpp:
(WebCore::SVGImageCache::findContainerForRenderer const):
(WebCore::SVGImageCache::imageForRenderer):
* Source/WebCore/svg/graphics/SVGImageCache.h:
* Source/WebCore/svg/graphics/SVGImageForContainer.h:
Canonical link: https://commits.webkit.org/321960@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications