Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0f72f0cc0aaa8e244a8f9eec084802929e846c20
https://github.com/WebKit/WebKit/commit/0f72f0cc0aaa8e244a8f9eec084802929e846c20
Author: Kimmo Kinnunen <[email protected]>
Date: 2024-06-06 (Thu, 06 Jun 2024)
Changed paths:
M Source/WebCore/html/HTMLCanvasElement.cpp
M Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp
Log Message:
-----------
HTMLCanvasElement inflates all invalidation rects with 2d context reasons
https://bugs.webkit.org/show_bug.cgi?id=275201
rdar://129327186
Reviewed by Said Abou-Hallawa.
This is problematic because:
- Not all contexts need this (WebGL, WebGPU, ImageRenderer)
- It uses HTMLCanvasElement::drawingContext function, which should
belong to CanvasRenderingContext2DBase.
Move the inflation logic to CanvasRenderingContext2DBase.
* Source/WebCore/html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::didDraw):
* Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp:
(WebCore::CanvasRenderingContext2DBase::didDraw):
Canonical link: https://commits.webkit.org/279769@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes