[webkit-changes] [WebKit/WebKit] 748816: GraphicsContext::resetClip does not maintain the c...

mwyrzykowski noreply at github.com
Thu May 11 09:48:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 748816bef2f391dee1204faa1f4f281bd034fe21
      https://github.com/WebKit/WebKit/commit/748816bef2f391dee1204faa1f4f281bd034fe21
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2023-05-11 (Thu, 11 May 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp
    M Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.h
    M Tools/TestWebKitAPI/Tests/WebCore/DisplayListRecorderTests.cpp

  Log Message:
  -----------
  GraphicsContext::resetClip does not maintain the clipping state in DisplayListRecorder correctly
https://bugs.webkit.org/show_bug.cgi?id=256374
<radar://108952047>

Reviewed by Kimmo Kinnunen.

Maintain the clipping state correctly when resetClip is used.

* Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp:
(WebCore::DisplayList::Recorder::Recorder):
(WebCore::DisplayList::Recorder::resetClip):
* Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.h:

* Tools/TestWebKitAPI/Tests/WebCore/DisplayListRecorderTests.cpp:
Add a test ensuring the behavior matches CoreGraphics.

Canonical link: https://commits.webkit.org/263973@main




More information about the webkit-changes mailing list