Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[LBSE] Fix SVGImage container size propagation
https://bugs.webkit.org/show_bug.cgi?id=246034 Reviewed by Rob Buis. Propagate container size in SVGImage also for RenderSVGRoot, not only LegacyRenderSVGRoot. This requires to enable SVGImage to actually use LBSE for its documents, if the host document has LBSE turned on. This requires plumbing the 'layerBasedSVGEngineEnabled' flag from Settings (reachable via Document) down to CachedImage / ImageObserver so that we can set the flag, if necessary, before constructing the document from the network data. Otherwise SVGImage in LBSE will continue to use the legacy SVG engine. Update TestExpectations now that SVGImage uses LBSE as well. * LayoutTests/platform/mac-monterey-wk2-lbse-text/TestExpectations: * LayoutTests/platform/mac-monterey-wk2-lbse-text/svg/as-background-image/svg-as-background-6-expected.png: Added. * LayoutTests/platform/mac-monterey-wk2-lbse-text/svg/as-image/svg-non-integer-scaled-image-expected.png: Added. * LayoutTests/platform/mac-monterey-wk2-lbse-text/svg/zoom/page/zoom-background-images-expected.png: Added. * Source/WebCore/loader/cache/CachedImage.cpp: (WebCore::CachedImage::load): * Source/WebCore/loader/cache/CachedImage.h: * Source/WebCore/platform/graphics/ImageObserver.h: (WebCore::ImageObserver::layerBasedSVGEngineEnabled const): * Source/WebCore/svg/graphics/SVGImage.cpp: (WebCore::SVGImage::setContainerSize): (WebCore::SVGImage::containerSize const): (WebCore::SVGImage::dataChanged): Canonical link: https://commits.webkit.org/255625@main
- Loading branch information
1 parent
4ec10f6
commit 3c9c0209a07833427073f05c89566ef30cf1b243
Showing
8 changed files
with
145 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.