[webkit-changes] [WebKit/WebKit] eb1b95: Combining CSS clip-path with any property that cre...

Simon Fraser noreply at github.com
Tue Nov 5 11:05:16 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: eb1b95267c74af38c345cac276ef69c4b70863c7
      https://github.com/WebKit/WebKit/commit/eb1b95267c74af38c345cac276ef69c4b70863c7
  Author: Simon Fraser <simon.fraser at apple.com>
  Date:   2024-11-05 (Tue, 05 Nov 2024)

  Changed paths:
    A LayoutTests/compositing/masks/reference-clip-path-on-composited-image-expected.html
    A LayoutTests/compositing/masks/reference-clip-path-on-composited-image.html
    M Source/WebCore/rendering/RenderReplaced.cpp

  Log Message:
  -----------
  Combining CSS clip-path with any property that creates a new stacking context makes img element disappear
https://bugs.webkit.org/show_bug.cgi?id=233553
rdar://86091397

Reviewed by Said Abou-Hallawa.

When an image is composited and has a clip-path which references an SVG path, we make a mask layer,
and paint the clip-path into it, using the PaintPhase::ClippingMask phase.

RenderReplaced failed to implement support for this paint phase, so add it, similar to how
`RenderBlock::paintObject()` does.

* LayoutTests/compositing/masks/reference-clip-path-on-composited-image-expected.html: Added.
* LayoutTests/compositing/masks/reference-clip-path-on-composited-image.html: Added.
* Source/WebCore/rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::paint):

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



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


More information about the webkit-changes mailing list