Branch: refs/heads/safari-7615.1.16.1-branch
  Home:   https://github.com/WebKit/WebKit
  Commit: 63f55d088ce1f533669568bd3790c93675488cf3
      
https://github.com/WebKit/WebKit/commit/63f55d088ce1f533669568bd3790c93675488cf3
  Author: Tim Horton <[email protected]>
  Date:   2023-01-19 (Thu, 19 Jan 2023)

  Changed paths:
    M Source/WebKit/Shared/RemoteLayerTree/CGDisplayListImageBufferBackend.mm
    M Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.h
    M Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm

  Log Message:
  -----------
  Cherry-pick 9502f8564a09. rdar://104102164

    CG display list graphics contexts are sometimes still flipped
    https://bugs.webkit.org/show_bug.cgi?id=250816
    rdar://104388673

    Reviewed by Dean Jackson.

    * Source/WebKit/Shared/RemoteLayerTree/CGDisplayListImageBufferBackend.mm:
    (WebKit::GraphicsContextCGDisplayList::GraphicsContextCGDisplayList):
    Remove the workaround introduced in r252402@main, since we have reinstated 
the toplevel
    context flip in 258997@main. I missed this in 258997@main because it only 
affects
    cases where we end up doing setCTM(getCTM()), which is just rare enough to 
miss
    with cursory testing.

    * Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.h:
    * Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm:
    (WebKit::RemoteLayerBackingStore::paintContents):
    (WebKit::RemoteLayerBackingStore::drawInContext):
    While debugging the above, I also noticed that we were leaving the display
    list context with a missing trailing `restore` operation, because we encode 
the
    display list inside drawInContext. To avoid this, move the flip inside our 
existing
    state saver, which is popped before encoding the display list. This has no
    actual effect at the moment (except making the dumped list look more 
correct),
    but will eventually be necessary when the replayed destination context is 
reused.

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

Canonical link: https://commits.webkit.org/[email protected]


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to