Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 02ccba95e49bb1156cc48f38dd4dbced86db2a0c
      
https://github.com/WebKit/WebKit/commit/02ccba95e49bb1156cc48f38dd4dbced86db2a0c
  Author: Fujii Hironori <[email protected]>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    A LayoutTests/platform/glib/damage/layer-overlaps-2-expected.txt
    A LayoutTests/platform/glib/damage/layer-overlaps-2.html
    M Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.cpp
    M Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.h

  Log Message:
  -----------
  SkiaCompositingLayer: incorrect damage regions for overlap regions
https://bugs.webkit.org/show_bug.cgi?id=316050

Reviewed by Carlos Garcia Campos.

SkiaCompositingLayer::paintSelf() cleared m_layerDamage after painting.
However, paintSelf() can be called multiple times for overlap and non-overlap
regions.

Added SkiaCompositingLayer::recursiveCleanUpAfterPaint() to clean up
m_layerDamage after painting.

recursiveCleanUpAfterPaint() will be used for cleaning up local space surfaces
in the future.

Test: platform/glib/damage/layer-overlaps-2.html

* LayoutTests/platform/glib/damage/layer-overlaps-2-expected.txt: Added.
* LayoutTests/platform/glib/damage/layer-overlaps-2.html: Added.
* Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.cpp:
(WebCore::SkiaCompositingLayer::paint):
(WebCore::SkiaCompositingLayer::paintSelf):
(WebCore::SkiaCompositingLayer::recursiveCleanUpAfterPaint):
* Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to