Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dictation glow can be rendered exceeding graphics context bounds
https://bugs.webkit.org/show_bug.cgi?id=258960 <radar://111867549> Reviewed by Kimmo Kinnunen. We should never set the clip rectangle to something larger than the initial graphics context bounds, since we won't render to an area larger than that and the contents will be left stale. Correct this by clipping to the initial clip rectangle whenever the clip rectangle is reset. * Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp: (WebCore::DisplayList::Recorder::resetClip): We were already setting the clip bounds to this value a few lines above. * Tools/TestWebKitAPI/Tests/WebCore/DisplayListRecorderTests.cpp: Update test expectation. Canonical link: https://commits.webkit.org/265851@main
- Loading branch information