[webkit-changes] [WebKit/WebKit] 8ed3d5: Use device pixel scaled backing store for <canvas>...
mattwoodrow
noreply at github.com
Thu Nov 3 16:55:16 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8ed3d524525aa6fa2ee34d47e744f36947536bfb
https://github.com/WebKit/WebKit/commit/8ed3d524525aa6fa2ee34d47e744f36947536bfb
Author: Matt Woodrow <mattwoodrow at apple.com>
Date: 2022-11-03 (Thu, 03 Nov 2022)
Changed paths:
M LayoutTests/platform/ios-wk2/TestExpectations
M Source/WebCore/rendering/RenderLayerBacking.cpp
M Source/WebCore/rendering/RenderLayerCompositor.cpp
Log Message:
-----------
Use device pixel scaled backing store for <canvas> with image-rendering: pixelated.
https://bugs.webkit.org/show_bug.cgi?id=247251
<rdar://99895407>
Reviewed by Simon Fraser.
We need to do scaling during painting to apply the image-rendering effect. An alternative fix would
be to set the image-rendering value on the GraphicsLayer, but its complicated to make that change
dependent on having computed isUnscaledBitmapOnly.
* LayoutTests/platform/ios-wk2/TestExpectations:
* Source/WebCore/rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::isUnscaledBitmapOnly const):
* Source/WebCore/rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::layerStyleChanged):
Canonical link: https://commits.webkit.org/256299@main
More information about the webkit-changes
mailing list