[webkit-changes] [WebKit/WebKit] 8e6ce4: Avoid creating an entry in RenderSVGResourceClippe...

Simon Fraser noreply at github.com
Thu May 25 21:37:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8e6ce4dc41c7a5d247188243b64b15b7e50c8521
      https://github.com/WebKit/WebKit/commit/8e6ce4dc41c7a5d247188243b64b15b7e50c8521
  Author: Simon Fraser <simon.fraser at apple.com>
  Date:   2023-05-25 (Thu, 25 May 2023)

  Changed paths:
    M Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp

  Log Message:
  -----------
  Avoid creating an entry in RenderSVGResourceClipper::m_clipperMap if we can do path-only clipping
https://bugs.webkit.org/show_bug.cgi?id=257353
rdar://109854067

Reviewed by Cameron McCormack.

RenderSVGResourceClipper::applyClippingToContext() unconditionally created an entry in m_clipperMap, but only needs to do so
when caching an ImageBuffer. If we can do path-only clipping, we don't need the cache entry.

If we succeed in path-only clipping, we should clear the image buffer from any existing entry.

This is a minor progression on the MotionMark Suits test.

* Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp:
(WebCore::RenderSVGResourceClipper::applyClippingToContext):

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




More information about the webkit-changes mailing list