-
junov@google.com authored
[Chromium] Animation updates fail when using a canvas as a CSS backround-image style with -webkit-canvas https://bugs.webkit.org/show_bug.cgi?id=103643 Reviewed by Stephen White. .: New test to verify that elements using a canvas as a style image source are redrawn when the canvas is animated. Added as a manual test because the bug was not reproducible in DumpRenderTree. * ManualTests/animated-canvas-as-background.html: Added. Source/WebCore: CanvasRenderingContext2D::didDraw was not propagating the change notification to observers in the accelerated compositing case. Problem fixed by adding observer notifications. New manual test: animated-canvas-as-background.html * html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::didDraw): The observer notification was factored out into a separate method so that it can be invoked directly for accelerated compositing. (WebCore): (WebCore::HTMLCanvasElement::notifyObserversCanvasChanged): * html/HTMLCanvasElement.h: (HTMLCanvasElement): * html/canvas/Canv...
80720cca