Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 645ce1764ad44d709b8ddfdcfd564fd06d1d8dc6
      
https://github.com/WebKit/WebKit/commit/645ce1764ad44d709b8ddfdcfd564fd06d1d8dc6
  Author: Nic <[email protected]>
  Date:   2026-07-21 (Tue, 21 Jul 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/skia/ShareableBitmapSkia.cpp

  Log Message:
  -----------
  [GTK][Skia] ShareableBitmap::paint ignores CompositeOperator::Copy
https://bugs.webkit.org/show_bug.cgi?id=319864

Reviewed by Carlos Garcia Campos.

BackingStore::incorporateUpdate sets CompositeOperator::Copy on the
GraphicsContext before painting update rects into the persistent backing
store, so that transparent webviews overwrite the previous frame instead of
blending over it. The Skia ShareableBitmap::paint implementation calls the
raw SkCanvas with a null SkPaint, which defaults to SrcOver and silently
discards the requested operator.

On a transparent webview every partial update therefore blends over the
previous frame's pixels: opaque content that shrinks or moves leaves
permanent trails, and semi-transparent content accumulates opacity on every
repaint, until the backing store is reallocated. Map CompositeOperator::Copy
to SkBlendMode::kSrc; all other callers keep the default SrcOver.

* Source/WebCore/platform/graphics/skia/ShareableBitmapSkia.cpp:
(WebCore::ShareableBitmap::paint): Honor CompositeOperator::Copy.

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



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

Reply via email to